Skip to content

Commit

Permalink
fix display
Browse files Browse the repository at this point in the history
  • Loading branch information
LoRexxar committed Jun 21, 2022
1 parent 7d01878 commit eba5b8a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion core/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
from core.console import KunlunInterpreter
from web.index.models import ScanTask

from Kunlun_M.settings import LOGS_PATH, IS_OPEN_REMOTE_SERVER
from Kunlun_M.settings import LOGS_PATH, IS_OPEN_REMOTE_SERVER, REMOTE_URL

from . import plugins

Expand Down Expand Up @@ -276,6 +276,9 @@ def main():
# for api
if hasattr(args, "api") and args.api:
print("TaskID: {}".format(task_id))
# 计算结果路径
result_url = "{}/dashboard/tasks/detail/{}?token={}".format(REMOTE_URL, s.id, s.visit_token)
print("Result Url: {}".format(result_url))
else:
logger.info("TaskID: {}".format(task_id))

Expand Down

0 comments on commit eba5b8a

Please sign in to comment.