fixing bug

This commit is contained in:
Michał Kalinowski
2024-10-17 16:39:00 +02:00
parent de720b170d
commit 137fe1a0fe

15
main.py Executable file → Normal file
View File

@@ -81,21 +81,6 @@ def get_days(day, weeks_back=WEEKS_BACK):
day_of_week += 1
return days
# NOT FUNCTIONAL
def get_weeks(day, worklogs, weeks=list()):
year, weeknum, day_of_week = day.isocalendar()
days = get_days(day, weeks_back=0)
tickets = get_week_tickets(worklogs, days)
weeks.append(tickets)
if weeknum != 0:
days = get_days(day, weeks_back=1)
get_weeks(days[0], worklogs, weeks)
return weeks
# TODO: implement this
def get_days_range(date_from, date_to):
pass
def get_week_tickets(worklogs, days):
this_week_tickets = []
for worklog in worklogs: