Skip to content

Commit

Permalink
Python lint fix
Browse files Browse the repository at this point in the history
  • Loading branch information
microtechno9000 committed Jan 14, 2025
1 parent 8c8eab4 commit 4f4ba69
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion arm/ui/settings/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,7 @@ def server_info():
drive.description = str(form_drive.description.data).strip()
drive.drive_mode = str(form_drive.drive_mode.data).strip()
db.session.commit()
flash(f"Updated Drive { drive.mount } details", "success")
flash(f"Updated Drive {drive.mount} details", "success")
# Return to systeminfo page (refresh page)
return redirect(redirect_settings)
else:
Expand Down
2 changes: 1 addition & 1 deletion arm/ui/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -312,7 +312,7 @@ def get_info(directory):
file_stats = os.stat(os.path.join(directory, i))
file_size = os.path.getsize(os.path.join(directory, i))
file_size = round((file_size / 1024), 1)
file_size = f"{file_size :,.1f}"
file_size = f"{file_size:,.1f}"
create_time = strftime(cfg.arm_config['DATE_FORMAT'], localtime(file_stats.st_ctime))
access_time = strftime(cfg.arm_config['DATE_FORMAT'], localtime(file_stats.st_atime))
# [file,most_recent_access,created, file_size]
Expand Down

0 comments on commit 4f4ba69

Please sign in to comment.