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
@@ -17,6 +17,7 @@ router = APIRouter()
@router.post("/create")
async def create_quiz_lol(quiz_input: QuizInput, user: User = Depends(get_current_user)):
quiz = Quiz(**quiz_input.dict(), user_id=user.id, id=uuid.uuid4())
await redis.delete("global_quiz_count")
return await quiz.save()