-
- # Find dumplog
- dumplog_paths = glob(
- os.path.join(CONFIG_USERDATA_FILE,
- data['name'],
- 'dumplog',
- data['starttime'])
- + '*'
- )
- if dumplog_paths:
- (_, dumplog_file) = os.path.split(dumplog_paths[0])
- dumplog_url = '{base}/{name}/dumplog/{file}'.format(
- base=CONFIG_USERDATA_WEB,
- name=data['name'],
- file=dumplog_file,
- )
- else:
- dumplog_url = "Can't find dumplog :("
-
- report = report_template.format(dumplog=dumplog_url, **data)