This commit is contained in:
yumoqing 2025-08-12 17:48:10 +08:00
parent 64c7d400ed
commit 148c71f9bc

View File

@ -43,7 +43,7 @@ class FileMgr:
return folder_owner == orgid return folder_owner == orgid
async def get_quota_used(self, sor, orgid): async def get_quota_used(self, sor, orgid):
sql = "select sum(filesize) as quota_used from file where orgid=${orgid}" sql = "select sum(filesize) as quota_used from file where orgid=${orgid}$"
recs = await sor.sqlExe(sql, {'orgid': orgid}) recs = await sor.sqlExe(sql, {'orgid': orgid})
if len(recs) == 0: if len(recs) == 0:
return 0 return 0