fixed stuff

This commit is contained in:
ZKWolf 2024-02-05 19:24:45 +01:00
parent b9a385395d
commit 27dce62e61

View File

@ -66,7 +66,19 @@ def analytics_batch_post():
try:
data = request.get_json()
logger.graylog_logger(level="info", handler="logging_gameDataAnalyticsBatch", message=data)
return jsonify({"status": "success"})
item_count = len(data["body"])
data = []
for item in range(item_count):
rand_record_id = uuid.uuid4()
data.append({
"RecordId": f"{rand_record_id}"
})
return jsonify(
{
"FailedPutCount": 0,
"RequestResponses": data
}
)
except TimeoutError:
return jsonify({"status": "error"})
except Exception as e: