|
@@ -171,9 +171,11 @@ def trigger_rom_update(request):
|
|
|
except FileNotFoundError:
|
|
|
return HttpResponse(
|
|
|
json.dumps({"success": False, "msg": "Skyscraper is not installed"}),
|
|
|
- mimetype="application/json",
|
|
|
+ status=400,
|
|
|
+ content_type="application/json",
|
|
|
)
|
|
|
return HttpResponse(
|
|
|
json.dumps({"success": True, "msg": "Library scan started"}),
|
|
|
- mimetype="application/json",
|
|
|
+ status=200,
|
|
|
+ content_type="application/json",
|
|
|
)
|