Exemple #1
0
def progress_today():
    if request.method == 'DELETE':
        data = DataRepository.delete_total_progress(date.today())
        if data > 0:
            socketio.emit("B2F_clear", {'amount': 0}, broadcast=True)
            return jsonify(status="success", row_count=data), 201
        else:
            return jsonify(status="no delete", row_count=data), 201
Exemple #2
0
def progress_today():
    data = DataRepository.delete_total_progress(date.today())
    print('Data is :', data)
    socketio.emit('B2F_clear', {'amount': 0})
    return jsonify(info='wissen gelukt'), 200