remove new line
This commit is contained in:
parent
10b1e870ec
commit
1e1bd7b8c9
1 changed files with 1 additions and 2 deletions
|
@ -367,7 +367,6 @@ def gallery_route():
|
||||||
thumbnail_paths = [os.path.join(thumbnails_path, file) for file in thumbnails]
|
thumbnail_paths = [os.path.join(thumbnails_path, file) for file in thumbnails]
|
||||||
# Sort the file paths by modification time in reverse order
|
# Sort the file paths by modification time in reverse order
|
||||||
sorted_thumbnails_paths = sorted(thumbnail_paths, key=lambda x: os.path.getmtime(x), reverse=True)
|
sorted_thumbnails_paths = sorted(thumbnail_paths, key=lambda x: os.path.getmtime(x), reverse=True)
|
||||||
|
|
||||||
# Extract file names from sorted paths
|
# Extract file names from sorted paths
|
||||||
sorted_thumbnails = [os.path.basename(file) for file in sorted_thumbnails_paths]
|
sorted_thumbnails = [os.path.basename(file) for file in sorted_thumbnails_paths]
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue