Пример #1
0
def update():
    update_data = {
        "notifications": copy(get_notifications()),
        "errors_count": get_errors_count()
    }
    flush_notifications()
    return jsonify(update_data)
Пример #2
0
def update():
    notifications_result = json.dumps(get_notifications(), ensure_ascii=False)
    flush_notifications()
    return notifications_result