Spaces:
Sleeping
Sleeping
Update app.py
Browse files7 unmodified lines8910111213147 unmodified lines22232424252627282930263132333435365 unmodified lines4243444546474849507 unmodified lines
date_format = '%m-%d-%Y at %H:%M'
def writer(pair):
final = pair[1] + ' is due on ' 7 unmodified lines
work = ""
for element in pq.queue: temp = PriorityQueue()
while not pq.empty():
elem = pq.get() temp.put(elem) work += writer(element) + '\n' work += writer(element) + '\n'
pq.queue = temp.queue
return work
5 unmodified lines return string_rep(pq)
cur_date = datetime.strptime(date_str, date_format) item_name = item_name.strip()
element = if add == "Add":
pq.put((cur_date, item_name))app.py+11-2