]> us-delaporte.pagekite.me Git - dotfiles.git/commitdiff
Add minutes to subject display
authorEdward Delaporte <edward@delaporte.us>
Sun, 22 Feb 2026 23:47:12 +0000 (17:47 -0600)
committerEdward Delaporte <edward@delaporte.us>
Sun, 22 Feb 2026 23:47:12 +0000 (17:47 -0600)
invoke/school/tasks.py

index d7c89e6c34787b3d8836667300962ff969a4f14f..28ce6ffd855ea00b9856d6b368236a92f08c5aa6 100644 (file)
@@ -133,7 +133,9 @@ def print_day(c, person, date):
     for subject, row in today.groupby('subject'):
         print()
         print()
-        print(f'### {row["subject"].values[0]}')
+        subject = row['subject'].values[0]
+        minutes = int(row['minutes'].values[0])
+        print(f'### {subject} - {minutes} minutes')
         print()
         for task in row['task'].values:
             print()
@@ -150,7 +152,7 @@ def print_day(c, person, date):
                 # Sometimes a float.
                 if hasattr(tip, 'strip'):
                     print()
-                    print(f'**When done**: {tip}.strip()')
+                    print(f'**When done**: {tip.strip()}')
 
 @task
 def files(c):