1
0
mirror of https://github.com/MarkParker5/STARK.git synced 2024-11-24 08:12:13 +02:00
This commit is contained in:
MarkParker5 2021-02-27 01:15:45 +02:00
parent fbb5cbb1f5
commit c082bd78a7

View File

@ -18,7 +18,8 @@ def command(request):
name = request.GET.get("name") name = request.GET.get("name")
params = request.GET.get("params") or {} params = request.GET.get("params") or {}
if not name: return HttpResponse("") if not name: return HttpResponse("")
try: cmd = Command.getCommand(name) cmd = Command.getCommand(name)
try: response = cmd.start()
except: return HttpResponse("") except: return HttpResponse("")
if not cmd: return HttpResponse("") if not cmd: return HttpResponse("")
json_string = json.dumps(response) json_string = json.dumps(response)