development #6

Merged
kalinowm merged 3 commits from development into main 2024-10-17 18:03:35 +02:00
Showing only changes of commit 137fe1a0fe - Show all commits

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: