Skip to content

Commit 3d65477

Browse files
committed
fix: exception while removing a storage location
1 parent aec745f commit 3d65477

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

cozy/control/offline_cache.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -115,9 +115,6 @@ def remove_all_for_storage(self, storage):
115115
if file.query_exists():
116116
file.delete()
117117

118-
if element.track.book.offline == True:
119-
element.track.book.update(offline=False, downloaded=False).execute()
120-
121118
OfflineCacheModel.delete().where(storage.path in OfflineCacheModel.original_file.path).execute()
122119

123120
def get_cached_path(self, chapter: Chapter):

0 commit comments

Comments
 (0)