Skip to content
Snippets Groups Projects
Commit 261b72f0 authored by Jorrit Schaap's avatar Jorrit Schaap
Browse files

Task #8291: fixed typo

parent 4bb68ac2
No related branches found
No related tags found
No related merge requests found
...@@ -290,7 +290,7 @@ class LTAStorageDb: ...@@ -290,7 +290,7 @@ class LTAStorageDb:
def totalFileSizeInTree(self, base_directory_id): def totalFileSizeInTree(self, base_directory_id):
with sqlite3.connect(self.db_filename) as conn: with sqlite3.connect(self.db_filename) as conn:
result = conn.execute(''' result = conn.execute('''
SELECT sum(fileinfo.size) FROM file_info SELECT sum(fileinfo.size) FROM fileinfo
join directory_closure dc on dc.descendant_id = fileinfo.directory_id join directory_closure dc on dc.descendant_id = fileinfo.directory_id
where ancestor_id = ? where ancestor_id = ?
''', [base_directory_id]).fetchone() ''', [base_directory_id]).fetchone()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment