remotes/1693045480750635534/spooky-22
Aevann1 2022-05-19 19:58:18 +02:00
parent 44cd7f4a92
commit 3e2af45a59
2 changed files with 2 additions and 1 deletions

View File

@ -36,6 +36,7 @@ app.config['MAX_CONTENT_LENGTH'] = 100 * 1024 * 1024
app.config["SESSION_COOKIE_SECURE"] = True
app.config["SESSION_COOKIE_SAMESITE"] = "Lax"
app.config["PERMANENT_SESSION_LIFETIME"] = 60 * 60 * 24 * 365
app.config['SESSION_REFRESH_EACH_REQUEST'] = False
app.config["DEFAULT_COLOR"] = environ.get("DEFAULT_COLOR", "ff0000").strip()
app.config["DEFAULT_THEME"] = environ.get("DEFAULT_THEME", "midnight").strip()
app.config["FORCE_HTTPS"] = 1

View File

@ -409,7 +409,7 @@ def monthly(v):
emails = [x['email'] for x in requests.get(f'https://api.gumroad.com/v2/products/{GUMROAD_ID}/subscribers', data=data, timeout=5).json()["subscribers"]]
for u in g.db.query(User).filter(User.patron > 0, User.patron_utc == 0).all():
if u.patron > 4 or u.email and u.email.lower() in emails:
if u.email and u.email.lower() in emails:
procoins = procoins_li[u.patron]
u.procoins += procoins
g.db.add(u)