From 133f6ee39acbcce950d06bb851fc7ed28286d045 Mon Sep 17 00:00:00 2001 From: chenv <413137366@qq.com> Date: Sat, 3 Aug 2024 06:54:48 +0800 Subject: [PATCH] Update file.py (#55) --- owrx/controllers/file.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/owrx/controllers/file.py b/owrx/controllers/file.py index 9facc3fe..c5117934 100644 --- a/owrx/controllers/file.py +++ b/owrx/controllers/file.py @@ -38,7 +38,7 @@ class FilesController(WebpageController): rows += '\n' # Show images as they are, show document icon for the rest if self.isimg.match(files[i]): - shot = "/files/" + files[i] + shot = "files/" + files[i] elif self.issnd.match(files[i]): shot = "static/gfx/audio-file.png" else: @@ -52,7 +52,7 @@ class FilesController(WebpageController): buttons = "" # Print out individual tiles rows += ('' + - ('' % (files[i], files[i])) + + ('' % (files[i], files[i])) + ('' % (shot, files[i])) + ('

%s

' % files[i]) + ('
%s\n' % buttons))