File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -54,13 +54,16 @@ def fetch_summary(meeting):
5454 with open (f"{ auto_minutes_path } /{ meeting } /.manifest.json" ) as fh :
5555 manifest = json .load (fh )
5656 sessions = [s .sessionId for s in manifest ['sessionGroups' ]
57- if s ["sessionName" ] == wgname .upper ()]
57+ if s ["sessionName" ].lower () == wgname .lower ()]
58+ if not sessions :
59+ return
5860 for session_id in sessions :
5961 session_time = "-" .join (session_id .rsplit ("-" , 2 )[- 2 :])
6062 summary .append (f"# Session: { session_time } " )
6163 with os .open (f"{ auto_minutes_path } /{ session_id } " , "r" ) as fh :
6264 session_md = fh .read ()
6365 session_md = session_md .replace (f"# { wgname .upper ()} " , "" )
66+ session_md = session_md .replace (f"# { wgname .lower ()} " , "" )
6467 summary .append (session_md )
6568 summary_md = "\n \n " .join (summary )
6669 with open (f"{ meeting } /summary.md" , 'w' ) as fh :
You can’t perform that action at this time.
0 commit comments