forked from devs/PCv5
dependencies: Python 3.11 URLlib is now typed and require explicit conversion from int to str
This commit is contained in:
parent
b93415819b
commit
37fba5d93b
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue