コード例 #1
0
def test_results_9():
    if request.method == 'POST':
        rda = RDA()
        # min_gap is a variable given the minimum number of hours between shifts needed. This can be changes here
    return jsonify(rda.test_9(min_gap=10.0))
コード例 #2
0
def test_results_10():
    if request.method == 'POST':
        rda = RDA()
    return jsonify(rda.test_10())
コード例 #3
0
def test_results_7():
    if request.method == 'POST':
        rda = RDA()
        # shift_duration_hrs is the the number of hours an employee must work to be entitled to a break
        # min_break_duration_mins is the minimum break an employee must have when breaching shift_duration_hrs
    return jsonify(rda.test_7(shift_duration_hrs=6.0, min_break_duration_mins=30.0))