Skip to content

Commit

Permalink
Fixed bug that prevented updating annotation tracks
Browse files Browse the repository at this point in the history
  • Loading branch information
mhkc committed May 10, 2024
1 parent 951ec07 commit accf4c4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ About changelog [here](https://keepachangelog.com/en/1.0.0/)
### Added
### Changed
### Fixed
- Fixed bug that prevented updating annotation tracks

## [2.1.2]
### Added
Expand Down
2 changes: 1 addition & 1 deletion gens/db/annotation.py
Original file line number Diff line number Diff line change
Expand Up @@ -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_one(track) # remove old track
db.insert_one({**track, "timestamp": datetime.datetime.now()})


Expand Down

0 comments on commit accf4c4

Please sign in to comment.