Skip to content

Commit a44e178

Browse files
gcf-owl-bot[bot]parthea
authored andcommitted
chore: add prerelease nox session (#281)
* chore(python): add missing import for prerelease testing Source-Link: googleapis/synthtool@d2871d9 Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-python:latest@sha256:b2dc5f80edcf5d4486c39068c9fa11f7f851d9568eea4dcba130f994ea9b5e97 * check samples failure * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * lint * check samples failure * add 30 seconds to request timestamp Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com> Co-authored-by: Anthonios Partheniou <[email protected]>
1 parent 267be33 commit a44e178

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

generated_samples/interactive-tutorials/product/add_fulfillment_places.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,6 @@
3232
+ product_id
3333
)
3434

35-
# The request timestamp
36-
current_date = datetime.datetime.now()
37-
3835

3936
# add fulfillment request
4037
def get_add_fulfillment_request(
@@ -70,6 +67,9 @@ def add_fulfillment_places(product_name: str, timestamp, place_id):
7067

7168

7269
create_product(product_id)
70+
71+
# The request timestamp
72+
current_date = datetime.datetime.now() + datetime.timedelta(seconds=30)
7373
print(f"------add fulfilment places with current date: {current_date}-----")
7474
add_fulfillment_places(product_name, current_date, "store2")
7575
get_product(product_name)

generated_samples/interactive-tutorials/product/set_inventory.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ def get_product_with_inventory_info(product_name: str) -> Product:
6464
# set inventory request
6565
def get_set_inventory_request(product_name: str) -> SetInventoryRequest:
6666
# The request timestamp
67-
request_time = datetime.datetime.now()
67+
request_time = datetime.datetime.now() + datetime.timedelta(seconds=30)
6868
set_mask = FieldMask(
6969
paths=["price_info", "availability", "fulfillment_info", "available_quantity"]
7070
)

0 commit comments

Comments
 (0)