Skip to content

Commit

Permalink
🪲 Favourite misspelling (#5133)
Browse files Browse the repository at this point in the history
Fixes #5131
  • Loading branch information
Annelein authored Feb 13, 2024
1 parent ab315fa commit b78e23b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions app.py
Original file line number Diff line number Diff line change
Expand Up @@ -2556,9 +2556,9 @@ def public_user_page(username):
sorted_adventure_programs = hedy_content.Adventures(
g.lang).get_sorted_adventure_programs(all_programs, adventure_names)

favourite_program = None
favorite_program = None
if 'favourite_program' in user_public_info and user_public_info['favourite_program']:
favourite_program = DATABASE.program_by_id(
favorite_program = DATABASE.program_by_id(
user_public_info['favourite_program'])

last_achieved = None
Expand All @@ -2574,7 +2574,7 @@ def public_user_page(username):
user_info=user_public_info,
achievements=ACHIEVEMENTS_TRANSLATIONS.get_translations(
g.lang).get('achievements'),
favourite_program=favourite_program,
favorite_program=favorite_program,
programs=user_programs,
last_achieved=last_achieved,
user_achievements=user_achievements,
Expand Down
4 changes: 2 additions & 2 deletions templates/public-page.html
Original file line number Diff line number Diff line change
Expand Up @@ -126,9 +126,9 @@ <h2 class="ml-4 text-3xl">{{_('programs')}}</h2>
</div>
</form>
</div>
{% if favourite_program or programs %}
{% if favorite_program or programs %}
<div class="flex flex-wrap w-full turn-pre-into-ace">
{% if favourite_program %}
{% if favorite_program %}
<div class="border rounded-lg border-yellow-500 mb-4 py-2 w-full">
<h3 class="text-center z-10 font-bold pb-0 mb-0 text-2xl">{{_('favorite_program')}}</h3>
<div class="flex flex-wrap mx-auto justify-center gap-4 turn-pre-into-ace" id="user_favourite_program">
Expand Down

0 comments on commit b78e23b

Please sign in to comment.