That's been bugging me

This commit is contained in:
Zergling_man 2022-04-10 23:22:52 +10:00
parent 2cd48b67ab
commit ac76e69f4f

View File

@ -72,7 +72,7 @@ def articles():
out=[] out=[]
for k,v in arts.items(): for k,v in arts.items():
out.append(f'<h4>{k}</h4>'+ '<br/>'.join([f'<a href="{l[0]}">{l[1] or l[0]}</a>' for l in v])) out.append(f'<h4>{k}</h4>'+ '<br/>'.join([f'<a href="{l[0]}">{l[1] or l[0]}</a>' for l in v]))
return {'title':'Articles','content':'<p>'+('</p><p>'.join(out))+'</p>','date':'2021/05/06'} return {'title':'Articles','content':'<p>'+('</p>\n<p>'.join(out))+'</p>','date':'2021/05/06'}
def redirect(req,src): def redirect(req,src):
return HttpResponse(status=302,headers={'Location':src.output}) return HttpResponse(status=302,headers={'Location':src.output})