Skip to content

Commit

Permalink
some more refactoring of neighbor plot in achievements view
Browse files Browse the repository at this point in the history
  • Loading branch information
joschobart committed Aug 25, 2024
1 parent 6e6f64b commit 654e291
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion fun_with_flags/achievements.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
@decs.choose_team
@decs.use_db
@decs.set_config_from_db
#@decs.error_check
@decs.error_check
def achievements():
""" """
_db_settings = current_app.config["DB__SETTINGS_DICT"]
Expand Down Expand Up @@ -165,6 +165,8 @@ def achievements():
_scores[-2] = _my_neighbor_doc["score"]["score"]
elif len(_my_neighbor_doc["score"]["history"].keys()) < 2:
_scores[-2] = _my_neighbor_doc["score"]["score"]
else:
pass

if _scores[-1] is None:
_scores[-1] = _my_neighbor_doc["score"]["score"]
Expand Down

0 comments on commit 654e291

Please sign in to comment.