Skip to content

Commit

Permalink
Update run.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Am-Delta authored Nov 18, 2023
1 parent 1b1c2c4 commit e5cfce1
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions run.py
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,15 @@ def db_update():
cur.execute("UPDATE Settings SET settings = ? WHERE ID =?", (str(settings), 1))
conn.commit()

if settings.get("invitation_limit", None) is None:
add_dict = {
"invitation_limit": 10,
"buy_only_customers": "off"
}
settings.update(add_dict)
cur.execute("UPDATE Settings SET settings = ? WHERE ID =?", (str(settings), 1))
conn.commit()

try:
cur.execute("SELECT * FROM Redeem")
records = cur.fetchall()
Expand Down

0 comments on commit e5cfce1

Please sign in to comment.