mirror of
https://github.com/blw1138/Zordon.git
synced 2025-12-17 08:48:13 +00:00
Fix add_job json parsing
This commit is contained in:
@@ -105,12 +105,6 @@ def add_job():
|
|||||||
|
|
||||||
try:
|
try:
|
||||||
"""Create new job and add to server render queue"""
|
"""Create new job and add to server render queue"""
|
||||||
if request.is_json:
|
|
||||||
request_params = request.get_json()
|
|
||||||
else:
|
|
||||||
# handle request values from HTML pages - may deprecate if HTML is not used or can pass JSON from HTML
|
|
||||||
request_params = request.values
|
|
||||||
|
|
||||||
json_string = request.form.get('json', None)
|
json_string = request.form.get('json', None)
|
||||||
if not json_string:
|
if not json_string:
|
||||||
return 'missing json data', 400
|
return 'missing json data', 400
|
||||||
|
|||||||
Reference in New Issue
Block a user