Skip to content

Commit

Permalink
Change 0.6.9 to 0.7.0
Browse files Browse the repository at this point in the history
  • Loading branch information
ianwal committed Jul 25, 2024
1 parent f66ec12 commit 6c44aa9
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/hydrusvideodeduplicator/db/DedupeDB.py
Original file line number Diff line number Diff line change
Expand Up @@ -438,9 +438,8 @@ def print_upgrade(version: str, new_version: str):
if not self.does_need_upgrade():
return

# TODO: Change 0.6.9 back to 0.7.0 before release.
if SemanticVersion(version) < SemanticVersion("0.6.9"):
print_upgrade(version, "0.6.9")
if SemanticVersion(version) < SemanticVersion("0.7.0"):
print_upgrade(version, "0.7.0")

# Create version table
self.execute("CREATE TABLE IF NOT EXISTS version (version TEXT)")
Expand Down Expand Up @@ -497,8 +496,7 @@ def print_upgrade(version: str, new_version: str):
# An upgrade cutoff at some point to prevent bitrot is a good idea, which is what Hydrus does.
self.add_to_phashed_files_queue(video_hash, perceptual_hash)

# TODO: Change 0.6.9 back to 0.7.0 before release.
self.set_version("0.6.9")
self.set_version("0.7.0")
# Note: We need to keep re-running get_version so that we can progressively upgrade.
version = self.get_version()

Expand Down

0 comments on commit 6c44aa9

Please sign in to comment.