Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed bug that prevented updating annotation tracks #157

Merged
merged 1 commit into from
May 23, 2024

Conversation

mhkc
Copy link
Collaborator

@mhkc mhkc commented May 10, 2024

This PR replaces the deprecated db.remove with db.delete_many.

@mhkc mhkc linked an issue May 10, 2024 that may be closed by this pull request
@@ -22,7 +22,7 @@ def register_data_update(track_type, name=None):
db = app.config["GENS_DB"][UPDATES]
LOG.debug(f"Creating timestamp for {track_type}")
track = {"track": track_type, "name": name}
db.remove(track) # remove old track
db.delete_many(track) # remove old track
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is it ever more than one track? Just wondering why delete_many and not delete_one

Copy link

@Jakob37 Jakob37 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me! Googled around a bit, looks like it will retain the same functionality with a newer interface.

@mhkc mhkc merged commit 198141d into master May 23, 2024
6 checks passed
@mhkc mhkc deleted the 156-error-loading-annotation-tracks branch May 23, 2024 08:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Error loading annotation tracks
2 participants