Skip to content

Commit

Permalink
add variable name
Browse files Browse the repository at this point in the history
  • Loading branch information
stevenhua0320 committed Jul 26, 2024
1 parent 711da9d commit 8b1969b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/regolith/commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@

def add_cmd(rc):
"""Adds documents to a collection in a database."""
rc.client[rc.db]
db = rc.client[rc.db]
db[rc.coll]
docs = [json.loads(doc) if isinstance(doc, string_types) else doc for doc in rc.documents]
rc.client.insert_many(rc.db, rc.coll, docs)
Expand Down

0 comments on commit 8b1969b

Please sign in to comment.