Vish2005 commited on
Commit
556dd4e
·
1 Parent(s): 854ca6e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -4
app.py CHANGED
@@ -42,7 +42,11 @@ def inputter(date_str, item_name, add):
42
 
43
  return string_rep(pq)
44
 
 
 
 
45
 
 
46
  def remove(element):
47
 
48
  temp = PriorityQueue()
@@ -50,12 +54,13 @@ def remove(element):
50
  while not pq.empty():
51
 
52
  elem = pq.get()
53
- print(elem)
54
- if elem != element:
55
 
56
- temp.put(elem)
 
 
57
 
58
- pq = temp
59
 
60
 
61
 
 
42
 
43
  return string_rep(pq)
44
 
45
+ def remove(element):
46
+
47
+ return "reached"
48
 
49
+ '''
50
  def remove(element):
51
 
52
  temp = PriorityQueue()
 
54
  while not pq.empty():
55
 
56
  elem = pq.get()
57
+ #if elem != element:
 
58
 
59
+ temp.put(elem)
60
+
61
+ #pq = temp
62
 
63
+ '''
64
 
65
 
66