Exclude release posts when searching for game entries
This commit is contained in:
parent
0f70b64174
commit
b72a58d6c2
1 changed files with 2 additions and 2 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue