Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -26,9 +26,9 @@ def string_rep(pq):
|
|
| 26 |
|
| 27 |
while not pq.empty():
|
| 28 |
|
| 29 |
-
|
| 30 |
-
|
| 31 |
-
|
| 32 |
|
| 33 |
pq.queue = temp.queue
|
| 34 |
|
|
@@ -42,7 +42,7 @@ def inputter(date_str = None, item_name = None, add = "Show"):
|
|
| 42 |
return string_rep(pq)
|
| 43 |
|
| 44 |
cur_date = datetime.strptime(date_str, date_format)
|
| 45 |
-
|
| 46 |
|
| 47 |
if add == "Add":
|
| 48 |
|
|
|
|
| 26 |
|
| 27 |
while not pq.empty():
|
| 28 |
|
| 29 |
+
elem = pq.get()
|
| 30 |
+
temp.put(elem)
|
| 31 |
+
work += writer(elem) + '\n'
|
| 32 |
|
| 33 |
pq.queue = temp.queue
|
| 34 |
|
|
|
|
| 42 |
return string_rep(pq)
|
| 43 |
|
| 44 |
cur_date = datetime.strptime(date_str, date_format)
|
| 45 |
+
item_name = item_name.strip()
|
| 46 |
|
| 47 |
if add == "Add":
|
| 48 |
|