From c524fe2b8b1ff079dbfbfb4ede9458d417b1d784 Mon Sep 17 00:00:00 2001 From: "Q.hongtao" Date: Sun, 3 Jan 2021 11:07:01 +0800 Subject: [PATCH] test Change-Id: I7fefd5fe1428db96e0c29195ff2c85bd5c433570 --- venus/modules/custom_config/action.py | 2 +- venus/task/backends/models.py | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/venus/modules/custom_config/action.py b/venus/modules/custom_config/action.py index 2b43a01..b865ed3 100644 --- a/venus/modules/custom_config/action.py +++ b/venus/modules/custom_config/action.py @@ -21,7 +21,7 @@ class CustomConfigCore(object): super(CustomConfigCore, self).__init__() def get_config(self, id): - res = {} + res = dict() res["value"] = self.config_sql.get_config(id) return res diff --git a/venus/task/backends/models.py b/venus/task/backends/models.py index d2886b8..e6f1f75 100644 --- a/venus/task/backends/models.py +++ b/venus/task/backends/models.py @@ -36,7 +36,6 @@ class VenusBase(models.TimestampMixin, created_at = Column(DateTime) updated_at = Column(DateTime) deleted_at = Column(DateTime) - # deleted = Column(Boolean, default=False) deleted = Column(String(1), default=0) metadata = None