Skip to content

Commit 5bb5ae4

Browse files
committed
Post TR2 Attempt 4
1 parent 09eb382 commit 5bb5ae4

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

tinydb/create_db.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,4 @@
2121

2222
for row in reader:
2323
row["population"] = int(row["population"])
24-
countries_table.insert(row)
24+
countries_table.insert(row)

tinydb/read.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,4 @@
1414
pprint(countries_table.search(query_def))
1515
pprint(countries_table.search(query["% of world"] >= 17))
1616
pprint(countries_table.get(doc_ids=[9, 10]))
17-
countries_db.close()
17+
countries_db.close()

tinydb/update_db_v3.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,5 @@
33
with TinyDB("ten_countries.json") as countries_db:
44
countries_table = countries_db.table(name="countries")
55
countries_table.update(
6-
{"source": "Official estimate"}, doc_ids=[7, 9]
6+
{"source": "Official estimate"}, doc_ids=[7, 9]
77
)

0 commit comments

Comments
 (0)