This commit is contained in:
Sewon Ahn 2021-01-16 22:19:31 +09:00
parent 199f710e10
commit 5e119059f6

View file

@ -92,7 +92,7 @@ def div(args, type_, subtype, tag, name, fid):
else: else:
filename = '<span class="filename">{}</span>'.format(name) filename = '<span class="filename">{}</span>'.format(name)
if len(str(fid)) >= 36 or fid<0: # detect if fid is uuid if len(str(fid)) >= 36 or int(fid) < 0: # detect if fid is uuid
if 'image' in type_: if 'image' in type_:
html = '<div class="{}">{}</div>' html = '<div class="{}">{}</div>'
elif 'pdf' in subtype: elif 'pdf' in subtype: