Exemplo n.º 1
0
def log_generate():
    #from main_cli import MainCli
    #MainCli.createNewReport()
    #print(request.form.getlist('log_checkbox'))
    #tulis=input('break')
    print(request.form.getlist('log_checkbox'))
    print(request.values.get('log_year'))
    #tulis=input('break')
    from main_cli import MainCli
    month_list = request.form.getlist('log_checkbox')
    year = request.values.get('log_year')
    MainCli.showLogWeb(month_list, year)
    return redirect('/log/result')
Exemplo n.º 2
0
def log_delete():
    from main_cli import MainCli
    MainCli.deleteCapture()
    return redirect('/capture_log_page')
Exemplo n.º 3
0
def capture_log():
    from main_cli import MainCli
    MainCli.captureDevice()
    return redirect('/capture_log/download')
Exemplo n.º 4
0
def generate_device_data():
    from main_cli import MainCli
    MainCli.deviceIdentification()
    return redirect('/capture_log_page')
Exemplo n.º 5
0
def template_generate():
    from main_cli import MainCli
    MainCli.createTemplate()
    return send_file(DATA_DIR + '/template.xlsx',
                     attachment_filename='template.xlsx',
                     as_attachment=True)
Exemplo n.º 6
0
def report_generate():
    from main_cli import MainCli
    MainCli.createNewReport()
    return redirect('/report/result')