This commit is contained in:
shortcutme 2018-12-13 21:15:14 +01:00
commit ed74403850
No known key found for this signature in database
GPG key ID: 5B63BAE6CB9613AE
3 changed files with 30 additions and 1 deletions

View file

@ -1,3 +1,12 @@
---
name: Bug report
about: Create a report to help us improve ZeroNet
title: ''
labels: ''
assignees: ''
---
### Step 1: Please describe your environment
* ZeroNet version: _____

View file

@ -0,0 +1,20 @@
---
name: Feature request
about: Suggest an idea for ZeroNet
title: ''
labels: ''
assignees: ''
---
**Is your feature request related to a problem? Please describe.**
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
**Describe the solution you'd like**
A clear and concise description of what you want to happen.
**Describe alternatives you've considered**
A clear and concise description of any alternative solutions or features you've considered.
**Additional context**
Add any other context or screenshots about the feature request here.

View file

@ -196,7 +196,7 @@ class UiWebsocketPlugin(object):
contents = site.content_manager.listContents() # Without user files
for inner_path in contents:
content = site.content_manager.contents[inner_path]
if "files" not in content:
if "files" not in content or content["files"] is None:
continue
for file_name, file_details in content["files"].items():
size_total += file_details["size"]