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')
def log_delete(): from main_cli import MainCli MainCli.deleteCapture() return redirect('/capture_log_page')
def capture_log(): from main_cli import MainCli MainCli.captureDevice() return redirect('/capture_log/download')
def generate_device_data(): from main_cli import MainCli MainCli.deviceIdentification() return redirect('/capture_log_page')
def template_generate(): from main_cli import MainCli MainCli.createTemplate() return send_file(DATA_DIR + '/template.xlsx', attachment_filename='template.xlsx', as_attachment=True)
def report_generate(): from main_cli import MainCli MainCli.createNewReport() return redirect('/report/result')