Skip to content

Commit

Permalink
Fix output error on override field
Browse files Browse the repository at this point in the history
  • Loading branch information
scotthartley committed May 17, 2024
1 parent abfe614 commit e0397f3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion litdb/_version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "1.2"
__version__ = "1.2.1"
4 changes: 2 additions & 2 deletions litdb/litdb.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,15 +63,15 @@ def litdb():
db = {}

additions = []
updates = []
updates = {}
if args.add_doi:
retrieved_record = get_doi([args.add_doi], configuration)
db, additions, updates = DB_dict.merge_dbs(
retrieved_record, db, configuration)
elif args.override_doi:
doi, field, value = args.override_doi
db[doi].add_override(field, value)
updates.append(db[doi])
updates[doi] = {field: value}
else:
# Get new records, and check all records that are not finalized
# to see if there are updates.
Expand Down

0 comments on commit e0397f3

Please sign in to comment.