diff --git a/orm/author.py b/orm/author.py index 649a7d0..ba9fcc5 100644 --- a/orm/author.py +++ b/orm/author.py @@ -13,7 +13,7 @@ class AuthorRating(Base): id = None # type: ignore rater = 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): diff --git a/pyproject.toml b/pyproject.toml index a2eee30..b91509a 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -25,9 +25,6 @@ black = { version = "^23.9.1", python = ">=3.12" } mypy = { version = "^1.7", python = ">=3.12" } setuptools = "^69.0.2" -[tool.poetry.group.dev.dependencies] -setuptools = "^69.0.2" - [tool.black] line-length = 120 target-version = ['py312'] diff --git a/resolvers/schema.py b/resolvers/schema.py index 4b91692..7330b03 100644 --- a/resolvers/schema.py +++ b/resolvers/schema.py @@ -2,7 +2,6 @@ from typing import List from sqlalchemy import and_, select from sqlalchemy.orm import aliased from sqlalchemy.exc import SQLAlchemyError -from orm.author import Author from orm.notification import Notification as NotificationMessage, NotificationSeen from services.auth import login_required from services.db import local_session