Update JSON dump indentation to 4 spaces

This commit is contained in:
sHa
2024-03-13 11:13:55 +02:00
parent aa8a4388eb
commit fbb63ef3f5

2
app.py
View File

@@ -59,7 +59,7 @@ def store_last_request(request_data, namespace="requests"):
data.pop(0)
with open(filename, "w") as f:
json.dump(data, f)
json.dump(data, f, indent=4)
@app.get("/", status_code=status.HTTP_200_OK)