From 1ba74deca447f6dfdf2b65f855351dbdaae1d824 Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Sat, 16 Oct 2021 12:16:59 +0200 Subject: [PATCH] gfgf --- files/routes/awards.py | 1 + 1 file changed, 1 insertion(+) diff --git a/files/routes/awards.py b/files/routes/awards.py index 59188f07d..464036127 100755 --- a/files/routes/awards.py +++ b/files/routes/awards.py @@ -147,6 +147,7 @@ def buy(v, award): v.coins -= price g.db.add(v) + g.db.flush() thing = g.db.query(AwardRelationship).order_by(AwardRelationship.id.desc()).first().id thing += 1