Removes unused connector fields and adds active boolean

This commit is contained in:
Mouse Reeve
2021-05-11 09:54:04 -07:00
parent 9ea588b855
commit e7c5b77b4c
4 changed files with 35 additions and 21 deletions

View File

@ -102,13 +102,6 @@ class AbstractConnector(AbstractMinimalConnector):
# title we handle separately.
self.book_mappings = []
def is_available(self):
"""check if you're allowed to use this connector"""
if self.max_query_count is not None:
if self.connector.query_count >= self.max_query_count:
return False
return True
def get_or_create_book(self, remote_id):
"""translate arbitrary json into an Activitypub dataclass"""
# first, check if we have the origin_id saved