Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/main'
Browse files Browse the repository at this point in the history
  • Loading branch information
weblate committed Jun 21, 2023
2 parents 97baae0 + a56cfc4 commit fde5cc5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion website/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ def get_admin_classes_page(self, user):
"students": len(Class.get("students")) if "students" in Class else 0,
"stats": statistics.get_general_class_stats(Class.get("students", [])),
"id": Class.get("id"),
"weekly_runs": Class.get("stats").get("week").get("runs") if "stats" in Class else 0
"weekly_runs": statistics.get_general_class_stats(Class.get("students", []))["week"]["runs"]
}
for Class in self.db.all_classes()
]
Expand Down

0 comments on commit fde5cc5

Please sign in to comment.