Skip to content

Commit

Permalink
one more achievement occurrence
Browse files Browse the repository at this point in the history
  • Loading branch information
Felienne committed Sep 27, 2023
1 parent 42804bf commit 41cd98f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion website/achievements.py
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ def check_code_achievements(self, code, level, commands_in_code):
if "hedy_honor" not in session["achieved"] and "Hedy" in code:
session["new_achieved"].append("hedy_honor")
if "hedy-ious" not in session["achieved"]:
all_print_arguments = hedy.all_print_arguments(code, level, session["lang"])
all_print_arguments = [x for x in commands_in_code if x == "print"]
for argument in all_print_arguments:
if all_print_arguments.count(argument) >= 10:
session["new_achieved"].append("hedy-ious")
Expand Down

0 comments on commit 41cd98f

Please sign in to comment.