move main to init

This commit is contained in:
Dima Gerasimov 2019-03-12 12:18:10 +00:00
parent 3444565a22
commit 2d478b767b

View file

@ -69,3 +69,7 @@ def tweets_on(*dts: Datish) -> List[Tweet]:
return predicate_date(lambda d: d in dates)
on = tweets_on
if __name__ == '__main__':
for t in tweets_all():
print(t)