Fix flake8

This commit is contained in:
RemiZOffAlex
2020-08-17 19:57:37 +03:00
parent a9736c09fe
commit ae5c629782
46 changed files with 229 additions and 336 deletions

View File

@@ -6,21 +6,16 @@
__author__ = 'RemiZOffAlex'
__copyright__ = '(c) RemiZOffAlex'
__license__ = 'MIT'
__email__ = 'remizoffalex@mail.ru'
__url__ = 'http://remizoffalex.ru'
import datetime
from sqlalchemy import Column, Integer, ForeignKey, String, DateTime
from sqlalchemy import Column, Integer, String
from sqlalchemy.orm import relationship
from . import Base
from .. import app
class Tag(Base):
"""
Теги, метки
"""Теги, метки
"""
__tablename__ = "tag"
@@ -37,7 +32,6 @@ class Tag(Base):
return "<Tag('%s')>" % (self.name)
def as_dict(self):
"""
Возвращает словарь
"""Возвращает словарь
"""
return {c.name: getattr(self, c.name) for c in self.__table__.columns}