Merge branch '70-sqlmodel' into 41-editting-commands
This commit is contained in:
+1
-1
@@ -398,7 +398,7 @@ async def submit_score(
|
||||
existing_score = session.scalar(stmt)
|
||||
|
||||
if existing_score:
|
||||
existing_score.Score = score_f
|
||||
existing_score.score = score_f
|
||||
else:
|
||||
score_obj = Score(username=username, score=score_f, category_id=category_id)
|
||||
session.add(score_obj)
|
||||
|
||||
Reference in New Issue
Block a user