Fix query in getFileCountInDeviceFolders
This commit is contained in:
parent
046dfc610a
commit
4ee0bebf73
1 changed files with 1 additions and 1 deletions
|
@ -1128,7 +1128,7 @@ class FilesDB {
|
|||
final db = await instance.database;
|
||||
final rows = await db.rawQuery(
|
||||
'''
|
||||
SELECT COUNT($columnGeneratedID) as count, $columnDeviceFolder
|
||||
SELECT COUNT(DISTINCT($columnLocalID)) as count, $columnDeviceFolder
|
||||
FROM $table
|
||||
WHERE $columnLocalID IS NOT NULL
|
||||
GROUP BY $columnDeviceFolder
|
||||
|
|
Loading…
Add table
Reference in a new issue