Skip to content

Commit

Permalink
linting
Browse files Browse the repository at this point in the history
  • Loading branch information
asthamohta committed Oct 26, 2022
1 parent ba80e5a commit 4910f59
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions samples/samples/pg_snippets.py
Original file line number Diff line number Diff line change
Expand Up @@ -1376,9 +1376,10 @@ def update_data_with_jsonb(instance_id, database_id):
database = instance.database(database_id)
"""
PG JSONB takes the last value in the case of duplicate keys.
PG JSONB sorts first by key length and then lexicographically with
PG JSONB sorts first by key length and then lexicographically with
equivalent key length.
"""

with database.batch() as batch:
batch.update(
table="Venues",
Expand All @@ -1390,7 +1391,7 @@ def update_data_with_jsonb(instance_id, database_id):
[
JsonObject({"name": None, "open": True}),
JsonObject(
{"name": "room 2", "open": False, "name": "room 3"}
{"name": "room 2", "open": False}
),
]
),
Expand Down

0 comments on commit 4910f59

Please sign in to comment.