Skip to content

Commit

Permalink
black .
Browse files Browse the repository at this point in the history
  • Loading branch information
harminius committed Nov 26, 2024
1 parent 8436f36 commit c090a07
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions server/mergin/auth/controller.py
Original file line number Diff line number Diff line change
Expand Up @@ -504,13 +504,12 @@ def get_user_info():
@auth_required(permissions=["admin"])
def get_server_usage():
data = {
"active_monthly_contributors":
[
current_app.ws_handler.monthly_contributors_count(),
current_app.ws_handler.monthly_contributors_count(month_offset=1),
current_app.ws_handler.monthly_contributors_count(month_offset=2),
current_app.ws_handler.monthly_contributors_count(month_offset=3),
],
"active_monthly_contributors": [
current_app.ws_handler.monthly_contributors_count(),
current_app.ws_handler.monthly_contributors_count(month_offset=1),
current_app.ws_handler.monthly_contributors_count(month_offset=2),
current_app.ws_handler.monthly_contributors_count(month_offset=3),
],
"projects": Project.query.count(),
"storage": files_size(),
"users": User.query.count(),
Expand Down

0 comments on commit c090a07

Please sign in to comment.