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: