imperialwool commited on
Commit
9d20dbb
·
1 Parent(s): 8f9e879

please work please work please work

Browse files
Files changed (1) hide show
  1. routes/helpers.py +3 -3
routes/helpers.py CHANGED
@@ -62,9 +62,9 @@ def thisIsHook(d):
62
  # Get variable from request
63
  def getFromRequest(request, thing: str):
64
  try:
65
- if request.method == 'POST': thing = request.form[thing]
66
- else: thing = thing.args[thing]
67
- return thing
68
  except: return None
69
 
70
  # Recognizing things
 
62
  # Get variable from request
63
  def getFromRequest(request, thing: str):
64
  try:
65
+ if request.method == 'POST': reqthing = request.form[thing]
66
+ else: reqthing = thing.args[thing]
67
+ return reqthing
68
  except: return None
69
 
70
  # Recognizing things