dependencies: Python 3.11 URLlib is now typed and require explicit conversion from int to str

This commit is contained in:
Eragon 2023-05-15 13:02:52 +02:00
parent b93415819b
commit 37fba5d93b
Signed by untrusted user: Eragon
GPG Key ID: 087126EBFC725006
2 changed files with 2 additions and 2 deletions

View File

@ -56,7 +56,7 @@ def forum_topic(f, page):
flash('Message envoyé', 'ok')
# Redirect to empty the form
return redirect(url_for('forum_topic', f=f, page=(t, "fin"),
_anchor=c.id))
_anchor=str(c.id)))
# Update views
t.views += 1

View File

@ -42,7 +42,7 @@ def program_view(page):
flash('Message envoyé', 'ok')
# Redirect to empty the form
return redirect(url_for('program_view', page=(p, "fin"), _anchor=c.id))
return redirect(url_for('program_view', page=(p, "fin"), _anchor=str(c.id)))
if page == -1:
page = (p.thread.comments.count() - 1) // Thread.COMMENTS_PER_PAGE + 1