Resolve "Add 24/7 and current configuration for rider scheduling" #1427

Merged
korina.cordero merged 4 commits from 531-add-24-7-and-current-configuration-for-rider-scheduling into master 2021-01-25 02:41:20 +00:00
Showing only changes of commit cdcdbe72b2 - Show all commits

View file

@ -38,13 +38,16 @@ def main():
req_hours = [[0 for x in range(len(hours))] for y in range(len(days))]
# get arguments
# there will be 7 arguments, monday to sunday schedule
# there will be 8 arguments, monday to sunday schedule and the shift selected
# sample argument:
# 0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0 0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0 0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0 0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0 0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0 0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0 0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0 24_7
for day_index in range(0, len(days)):
hours_string = sys.argv[day_index + 1]
hours_data = hours_string.split('-')
for hour_index in range(0, len(hours)):
req_hours[day_index][hour_index] = int(hours_data[hour_index])
# index of shift selected is 8
shift = sys.argv[8]
hour_shifts = []
if shift == "24_7":