Skip to content
Snippets Groups Projects
Verified Commit 233eb39d authored by Eliot Berriot's avatar Eliot Berriot
Browse files

Fix typeerror

parent e2c85b70
Branches
No related tags found
No related merge requests found
...@@ -118,7 +118,7 @@ async def get_stats(conn): ...@@ -118,7 +118,7 @@ async def get_stats(conn):
increment_stat( increment_stat(
data["listenings"], "total", int(check["usage_listenings_total"]) data["listenings"], "total", int(check["usage_listenings_total"])
) )
increment_stat(data["downloads"], "total", int(check["usage_downloads_total"])) increment_stat(data["downloads"], "total", int(check["usage_downloads_total"] or 0))
return data return data
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment