Fixed log view file path

This commit is contained in:
Joel Collins 2020-05-22 10:23:13 +01:00
parent cf04fc36fc
commit b8a8160644

View file

@ -152,7 +152,7 @@ def err_log():
"""
timestamp = datetime.now().strftime("%Y-%m-%d_%H-%M-%S")
return send_file(
DEFAULT_LOGFILE,
ROOT_LOGFILE,
as_attachment=True,
attachment_filename="openflexure_microscope_{}.log".format(timestamp),
)