From 718da6c5c3d55a663d053d2accd789583bca48e7 Mon Sep 17 00:00:00 2001 From: Ethan Dalool Date: Sun, 20 Sep 2020 11:41:15 -0700 Subject: [PATCH] Remove leftover attributes group_sql_index, group_getter. --- etiquette/objects.py | 6 ------ 1 file changed, 6 deletions(-) diff --git a/etiquette/objects.py b/etiquette/objects.py index 0a2775e..d173a50 100644 --- a/etiquette/objects.py +++ b/etiquette/objects.py @@ -81,9 +81,7 @@ class ObjectBase: return self.photodb.get_user(id=self.author_id) class GroupableMixin: - group_getter = None group_getter_many = None - group_sql_index = None group_table = None def _lift_children(self): @@ -239,7 +237,6 @@ class GroupableMixin: class Album(ObjectBase, GroupableMixin): table = 'albums' group_table = 'album_group_rel' - group_sql_index = constants.SQL_INDEX[group_table] def __init__(self, photodb, db_row): super().__init__(photodb) @@ -250,7 +247,6 @@ class Album(ObjectBase, GroupableMixin): self.description = self.normalize_description(db_row['description']) self.author_id = self.normalize_author_id(db_row['author_id']) - self.group_getter = self.photodb.get_album self.group_getter_many = self.photodb.get_albums_by_id self._sum_bytes_local = None @@ -1180,7 +1176,6 @@ class Tag(ObjectBase, GroupableMixin): ''' table = 'tags' group_table = 'tag_group_rel' - group_sql_index = constants.SQL_INDEX[group_table] def __init__(self, photodb, db_row): super().__init__(photodb) @@ -1193,7 +1188,6 @@ class Tag(ObjectBase, GroupableMixin): self.description = self.normalize_description(db_row['description']) self.author_id = self.normalize_author_id(db_row['author_id']) - self.group_getter = self.photodb.get_tag self.group_getter_many = self.photodb.get_tags_by_id def __repr__(self):