Exclude release posts when searching for game entries

This commit is contained in:
mez 2025-08-30 08:49:06 +01:00
parent 0f70b64174
commit b72a58d6c2

View file

@ -8,7 +8,7 @@ artshop = None
artstudio = None
recycledart = None
mastery = None
donations = input("Paste comma-separated deck donation URLs here or press Enter to skip: ").split(", ")
donations = input("Paste comma-separated deck donation URLs here if you maxed donations, or press Enter to skip: ").split(", ")
if donations[0] == "":
donations = None
@ -21,7 +21,7 @@ trades = {}
for event in log.log:
if event["date"].year == themonth.year:
if event["date"].month >= themonth.month:
if re.compile(r" [0-9][0-9][0-9]$").search(event["event"]):
if re.compile(r" [0-9][0-9][0-9]$").search(event["event"]) and not re.compile(r"release [0-9][0-9][0-9]$").search(event["event"]):
if len(games) < 37:
game = event["url"]
gamepage = requests.get(game)