File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 2525}
2626
2727app = Flask (__name__ )
28- CORS (app , resources = {r"/*" : {"origins" : ["https://gyft.metakgp.org" , "http://localhost:3000 " ]}})
28+ CORS (app , resources = {r"/*" : {"origins" : ["https://gyft.metakgp.org" , "http://localhost:5173 " ]}})
2929
3030# Configure logging
3131log_handler = logging .StreamHandler (sys .stdout )
Original file line number Diff line number Diff line change @@ -67,13 +67,13 @@ def create_timings(_table: Tag | NavigableString) -> list[int]:
6767 )
6868
6969 return [
70- get_time (time ) for
70+ get_time (time . get_text () ) for
7171 time in headings if time .get_text () != 'Day Name'
7272 ]
7373
7474def get_time (time : str ) -> int :
75- get_hour = lambda t : int (t .split (':' )[0 ])
76- return get_hour ( time ) + 12 if get_hour ( time ) < 6 else get_hour ( time )
75+ hour = int (time .split (':' )[0 ])
76+ return hour + 12 if hour < 6 else hour
7777
7878def build_courses (html : str , course_names : dict ) -> list [Course ]:
7979 r"""
You can’t perform that action at this time.
0 commit comments