File tree Expand file tree Collapse file tree 2 files changed +1
-9
lines changed
python-sqlite-sqlalchemy/project Expand file tree Collapse file tree 2 files changed +1
-9
lines changed Original file line number Diff line number Diff line change @@ -30,10 +30,6 @@ class Author(Base):
3030 publishers = relationship (
3131 "Publisher" , secondary = author_publisher , back_populates = "authors"
3232 )
33- def __eq__ (self , other ):
34- author_name = f"{ self .first_name } { self .last_name } "
35- other_name = f"{ other .first_name } { other .last_name } "
36- return author_name == other_name
3733
3834
3935class Book (Base ):
@@ -44,8 +40,6 @@ class Book(Base):
4440 publishers = relationship (
4541 "Publisher" , secondary = book_publisher , back_populates = "books"
4642 )
47- def __eq__ (self , other ):
48- return self .title == other .title
4943
5044
5145class Publisher (Base ):
@@ -58,6 +52,4 @@ class Publisher(Base):
5852 books = relationship (
5953 "Book" , secondary = book_publisher , back_populates = "publishers"
6054 )
61- def __eq__ (self , other ):
62- return self .name == other .name
63-
55+
You can’t perform that action at this time.
0 commit comments