From f3b5823cce5964d3803b3b3b35e7f00ce210e354 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=80=81=E5=B9=BF?= Date: Mon, 8 Jul 2019 16:04:32 +0800 Subject: [PATCH] Bugfix (#2903) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * [Update] 去掉session协议搜索 * [Update] 去掉adhoc wanging --- apps/ops/models/adhoc.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/ops/models/adhoc.py b/apps/ops/models/adhoc.py index 1f76283c7..91c9041a5 100644 --- a/apps/ops/models/adhoc.py +++ b/apps/ops/models/adhoc.py @@ -220,7 +220,7 @@ class AdHoc(models.Model): time_start = time.time() try: date_start = datetime.datetime.now().strftime('%Y-%m-%d %H:%M:%S') - history.date_start = date_start + history.date_start = timezone.now() print(_("{} Start task: {}").format(date_start, self.task.name)) raw, summary = self._run_only() date_end = datetime.datetime.now().strftime('%Y-%m-%d %H:%M:%S')