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