Skip to content

Commit 335e5c9

Browse files
Rename auth_key to generate_auth_key
This ensures we don't accidentally confuse local variables.
1 parent 7795b19 commit 335e5c9

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

food.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ def initialize_server():
5656
"webApi_menu_list": responses.menu_list,
5757
"webApi_item_list": responses.item_list,
5858
"webApi_item_one": responses.item_one,
59-
"webApi_Authkey": responses.auth_key,
59+
"webApi_Authkey": responses.generate_auth_key,
6060
"webApi_basket_list": responses.basket_list,
6161
"webApi_basket_reset": responses.basket_reset,
6262
"webApi_basket_add": responses.basket_add,

responses.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ def basket_list(request):
125125

126126

127127
@multiple_root_nodes()
128-
def auth_key(_):
128+
def generate_auth_key(_):
129129
return {
130130
"authKey": str(uuid4()),
131131
}
@@ -516,7 +516,7 @@ def validate_condition(_):
516516
return {}
517517

518518

519-
@response()
519+
@multiple_root_nodes()
520520
def order_done(request):
521521
"""Now that the order is complete, remove our basket from the database."""
522522
auth_key = request.form.get("authKey")

0 commit comments

Comments
 (0)