[Mod] make flake8 happy

This commit is contained in:
nanoric 2019-04-14 06:02:06 -04:00
parent 6a7b9e139d
commit 509cb7c943

View File

@ -56,7 +56,6 @@ def init_postgresql(settings: dict):
class ModelBase(Model): class ModelBase(Model):
def to_dict(self): def to_dict(self):
return self.__data__ return self.__data__
@ -318,7 +317,6 @@ def init_models(db: Database, driver: Driver):
class SqlManager(BaseDatabaseManager): class SqlManager(BaseDatabaseManager):
def __init__(self, class_bar: Type[Model], class_tick: Type[Model]): def __init__(self, class_bar: Type[Model], class_tick: Type[Model]):
self.class_bar = class_bar self.class_bar = class_bar
self.class_tick = class_tick self.class_tick = class_tick
@ -358,6 +356,7 @@ class SqlManager(BaseDatabaseManager):
) )
.order_by(self.class_tick.datetime) .order_by(self.class_tick.datetime)
) )
data = [db_tick.to_tick() for db_tick in s] data = [db_tick.to_tick() for db_tick in s]
return data return data