Skip to content
Snippets Groups Projects
Commit 5ace905f authored by Aydin, Mehmet Can (PG/T - Comp Sci & Elec Eng)'s avatar Aydin, Mehmet Can (PG/T - Comp Sci & Elec Eng)
Browse files

minor fix

parent 1c4da05d
No related branches found
No related tags found
No related merge requests found
...@@ -235,6 +235,9 @@ def get_hot_posts(page=1): ...@@ -235,6 +235,9 @@ def get_hot_posts(page=1):
offset = (page - 1) * per_page offset = (page - 1) * per_page
posts = PostClient.get_hot_posts(per_page,offset) posts = PostClient.get_hot_posts(per_page,offset)
if page >= 4:
return redirect(url_for('frontend.get_posts'))
if posts == 404: if posts == 404:
flash('No post in last 7 days', 'fail') flash('No post in last 7 days', 'fail')
return redirect(url_for('frontend.get_posts')) return redirect(url_for('frontend.get_posts'))
......
No preview for this file type
No preview for this file type
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment