From 5e119059f64802fee3ae4418f4c596ae78e22680 Mon Sep 17 00:00:00 2001 From: Sewon Ahn Date: Sat, 16 Jan 2021 22:19:31 +0900 Subject: [PATCH] m --- distribusi/distribusi/distribusi.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/distribusi/distribusi/distribusi.py b/distribusi/distribusi/distribusi.py index 29cf46b..1634180 100644 --- a/distribusi/distribusi/distribusi.py +++ b/distribusi/distribusi/distribusi.py @@ -92,7 +92,7 @@ def div(args, type_, subtype, tag, name, fid): else: filename = '{}'.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_: html = '
{}
' elif 'pdf' in subtype: