Skip to content

Commit

Permalink
migrate: return success only if everything specified was migrated
Browse files Browse the repository at this point in the history
  • Loading branch information
TAAPArthur committed Jul 7, 2024
1 parent bcc19e8 commit e2f4639
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion amt/media_reader.py
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,7 @@ def migrate(self, name, media_type=None, exact=False, move_self=False, force_sam
self.for_each(self.update_media, media_list, raiseException=True)
for media_data, last_read in zip(media_list, last_read_list):
self.mark_chapters_until_n_as_read(media_data, last_read)
return failures
return not failures

def upgrade_state_if_server_version_changed(self):
for media_data in list(self.get_media()):
Expand Down

0 comments on commit e2f4639

Please sign in to comment.