From ae9b557b98e21dd138e608a263238c9c71964056 Mon Sep 17 00:00:00 2001 From: Elizabeth Esswein Date: Wed, 5 Oct 2022 19:48:14 -0400 Subject: [PATCH] remove imports from scripts --- category_number_one/message-sender/message_sender.bpmn | 4 ++-- .../cc-invoice-approval-process-v2.bpmn | 6 +++--- shared/general/general_local_date_time.bpmn | 3 +-- shared/local-date-and-time/shared_local_date_time.bpmn | 2 +- test/a404/A.4.0.4.bpmn | 2 +- test/tc-41/TC-4.0.bpmn | 2 +- test/tc-42/TC-4.1.bpmn | 2 +- test/tc-50/TC-4.2.bpmn | 2 +- test/tc-60/TC-5.2.bpmn | 2 +- test/tc-61/TC-6.0.bpmn | 2 +- test/tc-70/TC-7.0.bpmn | 2 +- 11 files changed, 14 insertions(+), 15 deletions(-) diff --git a/category_number_one/message-sender/message_sender.bpmn b/category_number_one/message-sender/message_sender.bpmn index da0e63f8..ae291ca7 100644 --- a/category_number_one/message-sender/message_sender.bpmn +++ b/category_number_one/message-sender/message_sender.bpmn @@ -85,7 +85,7 @@ Flow_10conab Flow_1ihr88m - import time + timestamp = time.time() topic_one_a = f"topic_one_a_conversation_{timestamp}" topic_one_b = f"topic_one_b_conversation_{timestamp}" @@ -112,7 +112,7 @@ del time Flow_0o5ojq9 Flow_17gfxad - import time + timestamp = time.time() topic_two_a = f"topic_two_a_conversation_{timestamp}" topic_two_b = f"topic_two_b_conversation_{timestamp}" diff --git a/execute-procure-to-pay/cc-invoice-approval-process/cc-invoice-approval-process-v2.bpmn b/execute-procure-to-pay/cc-invoice-approval-process/cc-invoice-approval-process-v2.bpmn index 5bdc2532..8ae2fe34 100644 --- a/execute-procure-to-pay/cc-invoice-approval-process/cc-invoice-approval-process-v2.bpmn +++ b/execute-procure-to-pay/cc-invoice-approval-process/cc-invoice-approval-process-v2.bpmn @@ -74,7 +74,7 @@ - + @@ -292,7 +292,7 @@ Flow_0iiotdb Flow_1s4qhn1 - from datetime import datetime + invoice_date_obj = datetime.strptime(invoice.dueDate, '%Y-%m-%d') local_date_time_obj = datetime.strptime(local_date_str, '%Y-%m-%d') @@ -337,7 +337,7 @@ del c Flow_18qyq02 Flow_1okg2rg - import decimal + # Check if there are more than two decimal places invoiceAmount_str = str(invoice.invoiceAmount) diff --git a/shared/general/general_local_date_time.bpmn b/shared/general/general_local_date_time.bpmn index 9034df43..aec374d7 100644 --- a/shared/general/general_local_date_time.bpmn +++ b/shared/general/general_local_date_time.bpmn @@ -8,8 +8,7 @@ Flow_1ipjjs0 Flow_0agt8ei - from datetime import datetime - + local_date_time_str = str(datetime.utcnow()) local_date_time = get_localtime(timestamp=local_date_time_str) local_date_str = local_date_time.strftime('%Y-%m-%d') diff --git a/shared/local-date-and-time/shared_local_date_time.bpmn b/shared/local-date-and-time/shared_local_date_time.bpmn index cf800850..5c0c1354 100644 --- a/shared/local-date-and-time/shared_local_date_time.bpmn +++ b/shared/local-date-and-time/shared_local_date_time.bpmn @@ -8,7 +8,7 @@ Flow_1al74ve Flow_0xa8fic - from datetime import datetime + local_date_time_obj = datetime.utcnow() local_date_str = local_date_time_obj.strftime('%Y-%m-%d') diff --git a/test/a404/A.4.0.4.bpmn b/test/a404/A.4.0.4.bpmn index 4f019ff1..90c848e7 100644 --- a/test/a404/A.4.0.4.bpmn +++ b/test/a404/A.4.0.4.bpmn @@ -28,7 +28,7 @@ Flow_17cp9lq Flow_1o5couk - import time + timestamp = time.time() topic_one_a = f"topic_one_a_conversation_{timestamp}" del time diff --git a/test/tc-41/TC-4.0.bpmn b/test/tc-41/TC-4.0.bpmn index beb802f1..7d2589cd 100644 --- a/test/tc-41/TC-4.0.bpmn +++ b/test/tc-41/TC-4.0.bpmn @@ -26,7 +26,7 @@ Flow_0u7lz54 Flow_0g3hvo9 - import time + timestamp = time.time() topic_one_a = f"topic_one_a_conversation_{timestamp}" del time diff --git a/test/tc-42/TC-4.1.bpmn b/test/tc-42/TC-4.1.bpmn index b6b41a86..4d787b3f 100644 --- a/test/tc-42/TC-4.1.bpmn +++ b/test/tc-42/TC-4.1.bpmn @@ -21,7 +21,7 @@ Flow_15bgmal Flow_1euq8c9 - import time + timestamp = time.time() topic_one_a = f"topic_one_a_conversation_{timestamp}" del time diff --git a/test/tc-50/TC-4.2.bpmn b/test/tc-50/TC-4.2.bpmn index 3784e3e6..66a55ae1 100644 --- a/test/tc-50/TC-4.2.bpmn +++ b/test/tc-50/TC-4.2.bpmn @@ -32,7 +32,7 @@ Flow_02trvmu Flow_1fciaqh - import time + timestamp = time.time() topic_one_a = f"topic_one_a_conversation_{timestamp}" del time diff --git a/test/tc-60/TC-5.2.bpmn b/test/tc-60/TC-5.2.bpmn index f115ca5b..a5d57962 100644 --- a/test/tc-60/TC-5.2.bpmn +++ b/test/tc-60/TC-5.2.bpmn @@ -32,7 +32,7 @@ Flow_1kh86v5 Flow_12hrt0s - import time + timestamp = time.time() topic_one_a = f"topic_one_a_conversation_{timestamp}" del time diff --git a/test/tc-61/TC-6.0.bpmn b/test/tc-61/TC-6.0.bpmn index 5e2bef3b..7dfd7e40 100644 --- a/test/tc-61/TC-6.0.bpmn +++ b/test/tc-61/TC-6.0.bpmn @@ -27,7 +27,7 @@ Flow_1bk0sdv Flow_0tv692t - import time + timestamp = time.time() topic_one_a = f"topic_one_a_conversation_{timestamp}" del time diff --git a/test/tc-70/TC-7.0.bpmn b/test/tc-70/TC-7.0.bpmn index f3608279..6f9343da 100644 --- a/test/tc-70/TC-7.0.bpmn +++ b/test/tc-70/TC-7.0.bpmn @@ -47,7 +47,7 @@ Flow_1bk0sdv Flow_1rkklg1 - import time + timestamp = time.time() topic_one_a = f"topic_one_a_conversation_{timestamp}" topic_one_b = f"topic_one_b_conversation_{timestamp}"