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.