Commit 4dbd728a by Kálmán Viktor

dashboard: handle file icons without ext

parent fd8e6531
...@@ -147,7 +147,7 @@ class Store(object): ...@@ -147,7 +147,7 @@ class Store(object):
d['path'] += "/" d['path'] += "/"
d['ext'] = splitext(d['path'])[1] d['ext'] = splitext(d['path'])[1]
d['icon'] = ("folder-open" if not d['ext'] d['icon'] = ("folder-open" if not d['TYPE'] == "F"
else file_icons.get(d['ext'], "file-o")) else file_icons.get(d['ext'], "file-o"))
return sorted(content, key=lambda k: k['TYPE']) return sorted(content, key=lambda k: k['TYPE'])
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment