def update(): update_data = { "notifications": copy(get_notifications()), "errors_count": get_errors_count() } flush_notifications() return jsonify(update_data)
def update(): notifications_result = json.dumps(get_notifications(), ensure_ascii=False) flush_notifications() return notifications_result