]> us-delaporte.pagekite.me Git - dotfiles.git/commitdiff
Fixup
authorEdward Delaporte <edward@delaporte.us>
Mon, 19 Jan 2026 23:23:50 +0000 (17:23 -0600)
committerEdward Delaporte <edward@delaporte.us>
Mon, 19 Jan 2026 23:23:50 +0000 (17:23 -0600)
invoke/school/tasks.py

index 619b54b7024a1cc228db8e3106805a8ef62db267..cb0079cd3b4f54b0c8bd9f18b4044d6e388d8d0e 100644 (file)
@@ -53,6 +53,7 @@ def html_all(c, monday):
     for person in STUDENTS:
         md_week(c, person, monday)
         c.run(f'cd {SCHOOL_DIR};{BIN}/markdown_py {person}.{monday}.md > {SCHOOL_DIR}/{person}.{monday}.html')
+        c.run(f'cat {SCHOOL_DIR}/style.html >> {SCHOOL_DIR}/{person}.{monday}.html')
         c.run(f'librewolf {SCHOOL_DIR}/{person}.{monday}.html', asynchronous=True)
 
 
@@ -66,7 +67,7 @@ def missing_on_day(c, person, day):
     df = read_ods(ODS_FILE)
     today = get_todays_assignments(df, day, person)
     for subject in ['College Prep', 'Life Skills', 'Job Prep']:
-        if not 'Skip' in today['subject'].values and not subject in today['subject'].values:
+        if not 'All Day Event' in today['subject'].values and not subject in today['subject'].values:
             print(f'Missing {subject} for {person} on {day}')
 
 @task
@@ -101,17 +102,18 @@ def print_day(c, person, date):
         print(f'### {row["subject"].values[0]}')
         print()
         for task in row['task'].values:
-            print(task)
-        if(len(row['tip'].values) > 0):
             print()
+            print(f'- [ ] {task}')
+        if(len(row['tip'].values) > 0):
             for tip in row['tip'].values:
                 if tip:
+                    print()
                     print(f'> Tip: {tip}')
 
         if(len(row['when_done'].values) > 0):
-            print()
             for tip in row['when_done'].values:
                 if tip:
+                    print()
                     print(f'**When done**: {tip}')
 
 @task