fixed a typo leading to doubled events

This commit is contained in:
Ace 2018-12-27 19:17:43 +01:00 committed by GitHub
parent 9c07b414c4
commit 159a45bbb8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -174,7 +174,7 @@ def main():
elist = []
eventstoday = []
for events in c.events:
if time.year <= int((events.begin).format('YYYY')):
if time.year == int((events.begin).format('YYYY')):
if time.month == int((events.begin).format('M')):
elist.append(int((events.begin).format('D')))