Example #1
0
def getInfo():
    print('something')
    if request.method == 'POST':
        time  = db.get_time()
        peopleInLine = db.count_line()
        systemInfo = {'time' : time, "People in Line": peopleInLine}
        return json.dumps(systemInfo)
Example #2
0
def main():
    return render_template('homepage.html', 
        last_time=db.get_time(),
        line_length=db.count_line())
Example #3
0
def line_count():
    return str(db.count_line())
Example #4
0
def line_count():
    print(request.remote_addr)
    return str(db.count_line())