Skip to content

Commit 75f39a8

Browse files
r350178982AlexCXC
authored andcommitted
Update actions.py
1 parent ad0f066 commit 75f39a8

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

dtable_events/automations/actions.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3059,7 +3059,7 @@ def can_do_action(self):
30593059
return True
30603060

30613061
def get_page_row_url(self, row_id, internal_access_token):
3062-
url = f'{DTABLE_WEB_SERVICE_URL.strip('/')}/dtable/{uuid_str_to_36_chars(self.auto_rule.dtable_uuid)}/page-design/{self.page_id}/row/{row_id}'
3062+
url = f'{DTABLE_WEB_SERVICE_URL.strip("/")}/dtable/{uuid_str_to_36_chars(self.auto_rule.dtable_uuid)}/page-design/{self.page_id}/row/{row_id}'
30633063
url += f'?access-token={internal_access_token}&need_convert=0'
30643064
return url
30653065

@@ -3277,7 +3277,7 @@ def do_action(self):
32773277
return
32783278
kwargs = None
32793279
dtable_server_api = DTableServerAPI(self.auto_rule.username, self.auto_rule.dtable_uuid, INNER_DTABLE_SERVER_URL, DTABLE_WEB_SERVICE_URL, self.repo_id, self.workspace_id, kwargs=kwargs)
3280-
url = f'{DTABLE_WEB_SERVICE_URL.strip('/')}/dtable/{uuid_str_to_36_chars(self.auto_rule.dtable_uuid)}/document/{self.doc_uuid}/row/None/'
3280+
url = f'{DTABLE_WEB_SERVICE_URL.strip("/")}/dtable/{uuid_str_to_36_chars(self.auto_rule.dtable_uuid)}/document/{self.doc_uuid}/row/None/'
32813281
url += f'?access-token={dtable_server_api.internal_access_token}&need_convert=0'
32823282
output_dir = '/tmp/dtable-io/convert-page-to-pdf/'
32833283
filename = f'{self.doc_uuid}:{time.time()}.pdf'
@@ -4669,6 +4669,7 @@ def do_actions(self, db_session, with_test=False):
46694669
if duration.seconds >= 5:
46704670
auto_rule_logger.warning('the running time of rule %s is too long, for %s. SQL queries are %s', self.rule_id, duration, f"\n{'\n'.join(self.query_stats)}")
46714671

4672+
46724673
if not with_test:
46734674
auto_rule_result.update({
46744675
'success': self.task_run_success,

0 commit comments

Comments
 (0)