From e0397f38c08d48a8b7515e8c415b952be9161126 Mon Sep 17 00:00:00 2001 From: Scott Hartley Date: Fri, 17 May 2024 16:00:36 -0400 Subject: [PATCH] Fix output error on override field --- litdb/_version.py | 2 +- litdb/litdb.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/litdb/_version.py b/litdb/_version.py index 29047e9..42cf7cd 100644 --- a/litdb/_version.py +++ b/litdb/_version.py @@ -1 +1 @@ -__version__ = "1.2" \ No newline at end of file +__version__ = "1.2.1" \ No newline at end of file diff --git a/litdb/litdb.py b/litdb/litdb.py index ff310bb..5d53a17 100644 --- a/litdb/litdb.py +++ b/litdb/litdb.py @@ -63,7 +63,7 @@ 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( @@ -71,7 +71,7 @@ def litdb(): 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.