Skip to content

Commit

Permalink
solved small bug with the db_translator. Now the new entries are calc…
Browse files Browse the repository at this point in the history
…ulated correctly.
  • Loading branch information
marcorusc committed Aug 29, 2024
1 parent 591414e commit 4e3818b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion neko/inputs/db_translator.py
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ def translate(self):
self.load_progress()

# calculate the ids that have not been translated yet
remaining_ids = set([key for key, value in self.id_mapping.items() if isinstance(value, list) and not value])
remaining_ids = self.unique_ids - set(self.id_mapping.keys())
id_batches = [list(remaining_ids)[i:i + self.batch_size] for i in range(0, len(remaining_ids), self.batch_size)]

with Pool(self.processes) as pool:
Expand Down

0 comments on commit 4e3818b

Please sign in to comment.