Skip to content
Snippets Groups Projects
Commit b405a7e5 authored by penguin0001's avatar penguin0001
Browse files

order handling

parent ff1ef600
No related branches found
No related tags found
No related merge requests found
...@@ -87,7 +87,9 @@ def handle_message(msg): ...@@ -87,7 +87,9 @@ def handle_message(msg):
if state == "OLD": if state == "OLD":
if msg.upper() == "PKUP": if msg.upper() == "PKUP":
if user in orders: if user in orders:
return orders_to_string(user) + "\nOrder picked up, you may close the connection." order = orders_to_string(user)
orders.pop(user)
return order + "\nOrder picked up, you may close the connection."
else: else:
return "You don't have any orders to pick up. Please close the connection." return "You don't have any orders to pick up. Please close the connection."
else: else:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment