Skip to content

Commit 1ea47f9

Browse files
authored
Update cosmos.py
Signed-off-by: Sidney Andrews <sidandrews@microsoft.com>
1 parent 3861270 commit 1ea47f9

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/cosmos.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -57,13 +57,13 @@ def runDemo(writeOutput):
5757
created_entity = table.upsert_entity(new_entity)
5858
writeOutput(f"Upserted entity:\t{created_entity}")
5959

60-
existing_item = table.get_entity(
60+
existing_entity = table.get_entity(
6161
row_key="70b63682-b93a-4c77-aad2-65501347265f",
6262
partition_key="gear-surf-surfboards",
6363
)
6464

65-
writeOutput(f"Read entity id:\t{existing_item['RowKey']}")
66-
writeOutput(f"Read entity:\t{existing_item}")
65+
writeOutput(f"Read entity id:\t{existing_entity['RowKey']}")
66+
writeOutput(f"Read entity:\t{existing_entity}")
6767

6868
category = "gear-surf-surfboards"
6969
filter = f"PartitionKey eq '{category}'"
@@ -76,4 +76,4 @@ def runDemo(writeOutput):
7676
output = json.dumps(result, indent=True)
7777

7878
writeOutput("Found entities:")
79-
writeOutput(output, isCode=True)
79+
writeOutput(output, isCode=True)

0 commit comments

Comments
 (0)