Spaces:
Runtime error
Runtime error
Commit
·
9d20dbb
1
Parent(s):
8f9e879
please work please work please work
Browse files- 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':
|
| 66 |
-
else:
|
| 67 |
-
return
|
| 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
|