From 69b72355ea5574e754bbf9875ba52e70e7822b64 Mon Sep 17 00:00:00 2001 From: Sewon Ahn Date: Sat, 28 Nov 2020 15:05:08 +0900 Subject: [PATCH] m --- distribusi/distribusi/distribusi.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/distribusi/distribusi/distribusi.py b/distribusi/distribusi/distribusi.py index 560e7c9..28fc7c1 100644 --- a/distribusi/distribusi/distribusi.py +++ b/distribusi/distribusi/distribusi.py @@ -156,8 +156,6 @@ def render_dir(args, directory): # a = FILE_TYPES[type_] if type_ == 'image': - - a = FILE_TYPES[type_].format(relative_path, caption) if args.thumbnail: a = thumbnail(relative_path, relative_path, args) @@ -178,7 +176,7 @@ def render_dir(args, directory): print(type_, subtype, message, name) subtype = subtype + ' unkown-file' - a = a.replace('{}', name) + a = a.replace('{}', relative) id = uuid.uuid1() html.append(div(args, type_, subtype, a, name, id)) result = ""