Пример #1
0
def guess_from_week(week_to_predict):
    global week_to_check, records, division_standings
    records = common.reset_records(records)
    week_to_predict = int(week_to_predict)
    week_to_check = week_to_predict
    string = predict_games(week_to_predict, 17, common.set_up_html_string())
    return common.finish_html_string(string)
Пример #2
0
def guess_from_week(week_to_predict):
    global week_to_check, records, division_standings
    records = common.reset_records(records)
    week_to_predict = int(week_to_predict)
    week_to_check = week_to_predict
    string = predict_games(week_to_predict, 17, common.set_up_html_string())
    return common.finish_html_string(string)
Пример #3
0
def guess_week(week_to_predict):
    global week_to_check, records, division_standings
    records = common.reset_records(records)
    week_to_predict = int(week_to_predict)
    week_to_check = week_to_predict
    string = predict_games(week_to_predict, week_to_predict, common.set_up_html_string())
    return json.dumps({'data': common.finish_html_string(string)}, 200, {'ContentType': 'application/json'})
Пример #4
0
def find_champion():
    global schedule, records
    records = common.reset_records(records)
    string = common.set_up_html_string()
    schedule = common.schedule
    string = run_each_week(string)
    string = determine_playoff_matchups(string)
    return common.finish_html_string(string)
Пример #5
0
def guess_week(week_to_predict):
    global week_to_check, records, division_standings
    records = common.reset_records(records)
    week_to_predict = int(week_to_predict)
    week_to_check = week_to_predict
    string = predict_games(week_to_predict, week_to_predict,
                           common.set_up_html_string())
    return json.dumps({'data': common.finish_html_string(string)}, 200,
                      {'ContentType': 'application/json'})
Пример #6
0
def guess_from_week(week_to_predict):
    global records
    records = common.reset_records(records)
    string = common.set_up_html_string()
    string = predict_games(int(week_to_predict), 17, string)
    return common.finish_html_string(string)
Пример #7
0
def run(week_to_predict):
    global records
    records = common.reset_records(records)
    string = common.set_up_html_string()
    string = predict_games(int(week_to_predict), int(week_to_predict), string)
    return json.dumps({'data': common.finish_html_string(string)}, 200, {'ContentType': 'application/json'})