parent
26682632bc
commit
851ab77f7b
|
@ -13,7 +13,7 @@ class AuthorRating(Base):
|
||||||
id = None # type: ignore
|
id = None # type: ignore
|
||||||
rater = Column(ForeignKey("author.id"), primary_key=True, index=True)
|
rater = Column(ForeignKey("author.id"), primary_key=True, index=True)
|
||||||
author = Column(ForeignKey("author.id"), primary_key=True, index=True)
|
author = Column(ForeignKey("author.id"), primary_key=True, index=True)
|
||||||
value = Column(Integer)
|
plus = Column(Boolean)
|
||||||
|
|
||||||
|
|
||||||
class AuthorFollower(Base):
|
class AuthorFollower(Base):
|
||||||
|
|
|
@ -25,9 +25,6 @@ black = { version = "^23.9.1", python = ">=3.12" }
|
||||||
mypy = { version = "^1.7", python = ">=3.12" }
|
mypy = { version = "^1.7", python = ">=3.12" }
|
||||||
setuptools = "^69.0.2"
|
setuptools = "^69.0.2"
|
||||||
|
|
||||||
[tool.poetry.group.dev.dependencies]
|
|
||||||
setuptools = "^69.0.2"
|
|
||||||
|
|
||||||
[tool.black]
|
[tool.black]
|
||||||
line-length = 120
|
line-length = 120
|
||||||
target-version = ['py312']
|
target-version = ['py312']
|
||||||
|
|
|
@ -2,7 +2,6 @@ from typing import List
|
||||||
from sqlalchemy import and_, select
|
from sqlalchemy import and_, select
|
||||||
from sqlalchemy.orm import aliased
|
from sqlalchemy.orm import aliased
|
||||||
from sqlalchemy.exc import SQLAlchemyError
|
from sqlalchemy.exc import SQLAlchemyError
|
||||||
from orm.author import Author
|
|
||||||
from orm.notification import Notification as NotificationMessage, NotificationSeen
|
from orm.notification import Notification as NotificationMessage, NotificationSeen
|
||||||
from services.auth import login_required
|
from services.auth import login_required
|
||||||
from services.db import local_session
|
from services.db import local_session
|
||||||
|
|
Loading…
Reference in New Issue
Block a user