Skip to content

Commit

Permalink
🪲 Fix filtering of programs in public profile page (#5564)
Browse files Browse the repository at this point in the history
Same error as in  #5561

Fixes #5563 

**How to test**

Log in as a user, teacher1 for example, and set some programs to public. Then go to the Public profile and try using the filters.
  • Loading branch information
jpelay authored May 27, 2024
1 parent 14284b0 commit c9fc7a7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app.py
Original file line number Diff line number Diff line change
Expand Up @@ -2664,6 +2664,8 @@ def public_user_page(username):
return utils.error_page(error=404, ui_message=gettext('user_not_private'))
user_public_info = DATABASE.get_public_profile_settings(username)
page = request.args.get('page', default=None, type=str)
if page == '':
page = None

keyword_lang = g.keyword_lang
adventure_names = hedy_content.Adventures(g.lang).get_adventure_names(keyword_lang)
Expand Down

0 comments on commit c9fc7a7

Please sign in to comment.