summaryrefslogtreecommitdiff
path: root/server/apps/target.py
diff options
context:
space:
mode:
authorshihaoyue <[email protected]>2024-11-13 11:04:59 +0800
committershihaoyue <[email protected]>2024-11-13 11:04:59 +0800
commit2b0f92cd0f8ede313fdf2d37c4bca9d127779ea3 (patch)
tree4346393c6ed6d2c69a1816a5df027fde4be8dcb6 /server/apps/target.py
parent21d933a05c8982ce59e5655e97ba789253659281 (diff)
bugfix and databasesHEADmain
Diffstat (limited to 'server/apps/target.py')
-rw-r--r--server/apps/target.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/server/apps/target.py b/server/apps/target.py
index 31e719d..fb777cf 100644
--- a/server/apps/target.py
+++ b/server/apps/target.py
@@ -152,7 +152,8 @@ def average_without_max(results):
def task_monitoring(task):
with scheduler.app.app_context():
- target_status = task.task_policies[-1].target_status
+ # target_status = task.task_policies[-1].target_status
+ task = db.session.query(Task).filter_by(task_id = task.task_id).first()
addr = task.target.addrv4 if task.target.addrv4 else task.target.addrv6
nodes_info = json.loads(task.SCAN_AGENT_ID_LIST)