Fix optional used bytes calculation
This commit is contained in:
parent
393c66385f
commit
3d82ad9222
1 changed files with 1 additions and 3 deletions
|
@ -269,9 +269,7 @@ class UiWebsocketPlugin(object):
|
||||||
|
|
||||||
back = {}
|
back = {}
|
||||||
back["limit"] = config.optional_limit
|
back["limit"] = config.optional_limit
|
||||||
back["used"] = self.site.content_manager.contents.db.execute(
|
back["used"] = self.site.content_manager.contents.db.getOptionalUsedBytes()
|
||||||
"SELECT SUM(size) FROM file_optional WHERE is_downloaded = 1 AND is_pinned = 0"
|
|
||||||
).fetchone()[0]
|
|
||||||
back["free"] = helper.getFreeSpace()
|
back["free"] = helper.getFreeSpace()
|
||||||
|
|
||||||
self.response(to, back)
|
self.response(to, back)
|
||||||
|
|
Loading…
Reference in a new issue