Fix acrostics function
This commit is contained in:
parent
6c61a2bcfc
commit
0a4792f03a
1 changed files with 16 additions and 2 deletions
18
tools.py
18
tools.py
|
@ -1864,8 +1864,22 @@ def acrostics(monthly=False):
|
|||
theday = int(startdate[2:4])
|
||||
urls = []
|
||||
for event in log.log:
|
||||
if event["date"].year == datetime.datetime.today().year:
|
||||
if event["date"].month >= themonth:
|
||||
if event["date"].year > datetime.datetime.today().year:
|
||||
if "trade with " in event["event"]:
|
||||
try:
|
||||
if event["received"]:
|
||||
urls.append(event["url"])
|
||||
except:
|
||||
pass
|
||||
elif event["date"].year == datetime.datetime.today().year:
|
||||
if event["date"].month > themonth:
|
||||
if "trade with " in event["event"]:
|
||||
try:
|
||||
if event["received"]:
|
||||
urls.append(event["url"])
|
||||
except:
|
||||
pass
|
||||
elif event["date"].month == themonth:
|
||||
if event["date"].day >= theday:
|
||||
if "trade with " in event["event"]:
|
||||
try:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue