Fix update reports

parent 409d0e33
......@@ -1157,6 +1157,8 @@ def api_reports_sync():
bet_count=bet_data['bet_count']
)
db.session.add(bet)
# Flush to get bet.id before creating bet details
db.session.flush()
bets_count += 1
# Process bet details
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment