print out correction after->before

This commit is contained in:
blacktwin 2020-02-26 14:57:52 -05:00
parent c38138b41b
commit 0b6f3c9a6b

View File

@ -404,7 +404,7 @@ if __name__ == '__main__':
unwatched_lst += unwatched_work(sectionID=_library.key, date=date) unwatched_lst += unwatched_work(sectionID=_library.key, date=date)
if opts.action == 'show': if opts.action == 'show':
print("The following items were added after {}".format(opts.date)) print("The following items were added before {}".format(opts.date))
for item in unwatched_lst: for item in unwatched_lst:
added_at = datetime.datetime.utcfromtimestamp(float(item.added_at)).strftime("%Y-%m-%d") added_at = datetime.datetime.utcfromtimestamp(float(item.added_at)).strftime("%Y-%m-%d")
print(" {} added {}\n File: {}".format(item.title, added_at, item.file)) print(" {} added {}\n File: {}".format(item.title, added_at, item.file))