Seems like added a grayout for sponsors

This commit is contained in:
Profitroll 2023-01-25 14:05:00 +01:00
parent 66a1ea17ab
commit fd19b4cb0b

View File

@ -93,7 +93,7 @@ if configGet("enabled", "features", "sponsorships") is True:
except Exception as exp:
logWrite(f"Could not find user {entry['user']} notify about sponsorship expiry due to '{exp}'")
continue
for entry in col_sponsorships.find({"sponsorship.expires": {"$lt": datetime.now()}}):
for entry in col_sponsorships.find({"sponsorship.expires": {"$lt": datetime.now()-timedelta(days=1)}}):
try:
holo_user = HoloUser(entry["user"])
col_sponsorships.find_one_and_delete({"user": holo_user.id})