Implement sorting by last read

This commit is contained in:
BasioMeusPuga
2018-02-21 01:05:15 +05:30
parent a65bd054be
commit 0b64fc3e8d
7 changed files with 67 additions and 29 deletions

View File

@@ -36,7 +36,9 @@ class BackGroundTabUpdate(QtCore.QThread):
for i in self.all_metadata:
file_hash = i['hash']
position = i['position']
hash_position_pairs.append([file_hash, position])
last_accessed = i['last_accessed']
hash_position_pairs.append([file_hash, position, last_accessed])
database.DatabaseFunctions(
self.database_path).modify_position(hash_position_pairs)