Added stats to homepage

This commit is contained in:
Mawoka
2022-03-23 17:49:00 +01:00
parent 4afc4cbbff
commit b21d9721f5
5 changed files with 99 additions and 11 deletions
+1
View File
@@ -36,6 +36,7 @@ async def create_user(user: route_user, background_task: BackgroundTasks) -> Use
return JSONResponse({"details": "Username mustn't be 32 characters long"}, 400)
await user.save()
background_task.add_task(send_register_email, email=user.email)
await redis.delete("global_user_count")
return user