From 4910f592840332cfad72c0b416a6bd828c0ac8cd Mon Sep 17 00:00:00 2001 From: Astha Mohta Date: Thu, 27 Oct 2022 03:32:10 +0530 Subject: [PATCH] linting --- samples/samples/pg_snippets.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/samples/samples/pg_snippets.py b/samples/samples/pg_snippets.py index f95d28afd9..678cbc4435 100644 --- a/samples/samples/pg_snippets.py +++ b/samples/samples/pg_snippets.py @@ -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", @@ -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} ), ] ),