Skip to content
This repository was archived by the owner on Apr 20, 2022. It is now read-only.

Commit a560435

Browse files
author
owefsad
committed
Release 1.0.0: fix send method pool to engine, then release
1 parent 5cf4e09 commit a560435

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

apiserver/report/handler/saas_method_pool_handler.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -192,11 +192,10 @@ def save_method_call(self, pool_sign, current_version_agents):
192192
@staticmethod
193193
def send_to_engine(method_pool_id, update_record=False, model=None):
194194
try:
195-
if update_record:
196-
logger.info(
197-
f'[+] send method_pool [{method_pool_id}] to engine for {"update" if update_record else "new record"}')
195+
if model is None:
196+
logger.info(f'[+] send method_pool [{method_pool_id}] to engine for {"update" if update_record else "new record"}')
198197
requests.get(url=settings.BASE_ENGINE_URL.format(id=method_pool_id))
199-
if model:
198+
else:
200199
logger.info(
201200
f'[+] send method_pool [{method_pool_id}] to engine for {model if model else ""}')
202201
requests.get(url=settings.REPLAY_ENGINE_URL.format(id=method_pool_id))

0 commit comments

Comments
 (0)