лог upload_entry в _upload_json, v1.24.1
This commit is contained in:
@@ -135,6 +135,7 @@ class ContractsApp:
|
|||||||
def _upload_json(self):
|
def _upload_json(self):
|
||||||
"""Принять файл как base64. Сохранить строкой (без декодирования — быстро)."""
|
"""Принять файл как base64. Сохранить строкой (без декодирования — быстро)."""
|
||||||
data = request.get_json(silent=True)
|
data = request.get_json(silent=True)
|
||||||
|
_log("upload_entry", f"data={'yes' if data else 'no'}")
|
||||||
if not data:
|
if not data:
|
||||||
return jsonify({"error": "Нет JSON"}), 400
|
return jsonify({"error": "Нет JSON"}), 400
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user