[Mod] make flake8 happy
This commit is contained in:
parent
6a7b9e139d
commit
509cb7c943
@ -56,7 +56,6 @@ def init_postgresql(settings: dict):
|
||||
|
||||
|
||||
class ModelBase(Model):
|
||||
|
||||
def to_dict(self):
|
||||
return self.__data__
|
||||
|
||||
@ -318,7 +317,6 @@ def init_models(db: Database, driver: Driver):
|
||||
|
||||
|
||||
class SqlManager(BaseDatabaseManager):
|
||||
|
||||
def __init__(self, class_bar: Type[Model], class_tick: Type[Model]):
|
||||
self.class_bar = class_bar
|
||||
self.class_tick = class_tick
|
||||
@ -358,6 +356,7 @@ class SqlManager(BaseDatabaseManager):
|
||||
)
|
||||
.order_by(self.class_tick.datetime)
|
||||
)
|
||||
|
||||
data = [db_tick.to_tick() for db_tick in s]
|
||||
return data
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user