fix
This commit is contained in:
@@ -35,6 +35,7 @@ def extract_week_data(soup: BeautifulSoup, shift: int) -> dict:
|
||||
current_day_of_week = datetime.datetime.now().weekday()
|
||||
if current_day_of_week + shift > 6:
|
||||
current_week_number += 1
|
||||
current_week_number += 1
|
||||
week_tab_id = "week_1_tab" if current_week_number % 2 else "week_2_tab"
|
||||
week_data: BeautifulSoup = soup.find('div', {"id": week_tab_id})
|
||||
day_name = (
|
||||
@@ -114,6 +115,7 @@ def get_data_in_database(group_id: int, shift: int = 0) -> dict:
|
||||
current_day_of_week = datetime.datetime.now().weekday()
|
||||
if current_day_of_week + shift > 6:
|
||||
current_week_number += 1
|
||||
current_week_number += 1
|
||||
week_tab_id = "week_1_tab" if current_week_number % 2 else "week_2_tab"
|
||||
day_name = (
|
||||
datetime.datetime.now() + datetime.timedelta(days=shift)
|
||||
|
||||
Reference in New Issue
Block a user