Skip to content

Commit 291da14

Browse files
authored
Merge pull request #14 from botcity-dev/mnt/update-dependencies-legacy
MNT: Updating dependencies (legacy template)
2 parents da2441f + d82b29e commit 291da14

5 files changed

Lines changed: 33 additions & 19 deletions

File tree

{{ cookiecutter.bot_id.replace(' ', '_') }}/requirements.txt

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
{%- if cookiecutter.project_type == "Desktop" -%}
2-
botcity-framework-core>=0.4.0,<1.0
2+
botcity-framework-core>=1.2.1,<2.0
33
{%- elif cookiecutter.project_type == "Web" -%}
4-
botcity-framework-web>=0.7.0,<1.0
4+
botcity-framework-web>=1.0,<2.0
55
{%- elif cookiecutter.project_type == "Both" -%}
6-
botcity-framework-core>=0.4.0,<1.0
7-
botcity-framework-web>=0.7.0,<1.0
6+
botcity-framework-core>=1.2.1,<2.0
7+
botcity-framework-web>=1.0,<2.0
88
{%- elif cookiecutter.project_type == "Custom" -%}
99
botcity-framework-base
1010
{% endif %}
11-
botcity-maestro-sdk>=0.2.0,<1.0
11+
botcity-maestro-sdk>=0.5.1,<1.0
1212
# Uncomment to use botcity-utils
1313
#botcity-utils>=0.1.2
1414
# Uncomment to use botcity-crawler-plugin

{{ cookiecutter.bot_id.replace(' ', '_') }}/{{ cookiecutter.bot_id.replace(' ', '_') }}/bot.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,10 @@ def action(self, execution=None):
5353
# self.maestro.finish_task(
5454
# task_id=execution.task_id,
5555
# status=AutomationTaskFinishStatus.SUCCESS,
56-
# message="Task Finished OK."
56+
# message="Task Finished OK.",
57+
# total_items=0,
58+
# processed_items=0,
59+
# failed_items=0
5760
# )
5861

5962
def not_found(self, label):

{{ cookiecutter.bot_id.replace(' ', '_') }}/{{ cookiecutter.bot_id.replace(' ', '_') }}/bothbot.py

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -67,18 +67,22 @@ def action(self, execution=None):
6767
# Opens the BotCity website.
6868
self.browse("https://www.botcity.dev")
6969

70+
# Wait for 10 seconds before closing
71+
self.wait(10000)
72+
73+
# Stop the browser and clean up
74+
self.stop_browser()
75+
7076
# Uncomment to mark this task as finished on BotMaestro
7177
# self.maestro.finish_task(
7278
# task_id=execution.task_id,
7379
# status=AutomationTaskFinishStatus.SUCCESS,
74-
# message="Task Finished OK."
80+
# message="Task Finished OK.",
81+
# total_items=0,
82+
# processed_items=0,
83+
# failed_items=0
7584
# )
7685

77-
# Wait for 10 seconds before closing
78-
self.wait(10000)
79-
80-
# Stop the browser and clean up
81-
self.stop_browser()
8286

8387
def not_found(self, label):
8488
print(f"Element not found: {label}")

{{ cookiecutter.bot_id.replace(' ', '_') }}/{{ cookiecutter.bot_id.replace(' ', '_') }}/custombot.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,10 @@ def action(self, execution=None):
5353
# self.maestro.finish_task(
5454
# task_id=execution.task_id,
5555
# status=AutomationTaskFinishStatus.SUCCESS,
56-
# message="Task Finished OK."
56+
# message="Task Finished OK.",
57+
# total_items=0,
58+
# processed_items=0,
59+
# failed_items=0
5760
# )
5861

5962

{{ cookiecutter.bot_id.replace(' ', '_') }}/{{ cookiecutter.bot_id.replace(' ', '_') }}/webbot.py

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -59,18 +59,22 @@ def action(self, execution=None):
5959
# Opens the BotCity website.
6060
self.browse("https://www.botcity.dev")
6161

62+
# Wait for 10 seconds before closing
63+
self.wait(10000)
64+
65+
# Stop the browser and clean up
66+
self.stop_browser()
67+
6268
# Uncomment to mark this task as finished on BotMaestro
6369
# self.maestro.finish_task(
6470
# task_id=execution.task_id,
6571
# status=AutomationTaskFinishStatus.SUCCESS,
66-
# message="Task Finished OK."
72+
# message="Task Finished OK.",
73+
# total_items=0,
74+
# processed_items=0,
75+
# failed_items=0
6776
# )
6877

69-
# Wait for 10 seconds before closing
70-
self.wait(10000)
71-
72-
# Stop the browser and clean up
73-
self.stop_browser()
7478

7579
def not_found(self, label):
7680
print(f"Element not found: {label}")

0 commit comments

Comments
 (0)