aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
-rwxr-xr-xlater4
1 files changed, 2 insertions, 2 deletions
diff --git a/later b/later
index 2f13872..5289f2d 100755
--- a/later
+++ b/later
@@ -42,7 +42,7 @@ class WatchLaterEntry:
path: str
mtime: dt
- def __str__(self):
+ def format(self, title_map):
def format_time(time):
now = dt.now()
if time < now - datetime.timedelta(days=7):
@@ -171,6 +171,6 @@ args = parser.parse_args()
title_map = TitleMap(title_map_file, update=args.update_titles)
for entry in entries():
- print(entry)
+ print(entry.format(title_map))
title_map.maybe_commit()