Updates migrations
To get the app working again I ran resetdb, let it crash in initdb, then ran the migration, then re-ran initdb
This commit is contained in:
@ -6,7 +6,7 @@ import requests
|
||||
|
||||
from django.db import transaction
|
||||
|
||||
from fedireads import models
|
||||
from bookwyrm import models
|
||||
|
||||
|
||||
class AbstractConnector(ABC):
|
||||
|
@ -1,11 +1,11 @@
|
||||
''' using another fedireads instance as a source of book data '''
|
||||
''' using another bookwyrm instance as a source of book data '''
|
||||
from uuid import uuid4
|
||||
|
||||
from django.core.exceptions import ObjectDoesNotExist
|
||||
from django.core.files.base import ContentFile
|
||||
import requests
|
||||
|
||||
from fedireads import models
|
||||
from bookwyrm import models
|
||||
from .abstract_connector import AbstractConnector, SearchResult, Mapping
|
||||
from .abstract_connector import update_from_mappings, get_date, get_data
|
||||
|
@ -4,7 +4,7 @@ import requests
|
||||
|
||||
from django.core.files.base import ContentFile
|
||||
|
||||
from fedireads import models
|
||||
from bookwyrm import models
|
||||
from .abstract_connector import AbstractConnector, SearchResult, Mapping
|
||||
from .abstract_connector import update_from_mappings
|
||||
from .abstract_connector import get_date, get_data
|
||||
|
@ -1,7 +1,7 @@
|
||||
''' using a fedireads instance as a source of book data '''
|
||||
''' using a bookwyrm instance as a source of book data '''
|
||||
from django.contrib.postgres.search import SearchRank, SearchVector
|
||||
|
||||
from fedireads import models
|
||||
from bookwyrm import models
|
||||
from .abstract_connector import AbstractConnector, SearchResult
|
||||
|
||||
|
||||
@ -12,7 +12,7 @@ class Connector(AbstractConnector):
|
||||
|
||||
|
||||
def search(self, query):
|
||||
''' right now you can't search fedireads sorry, but when
|
||||
''' right now you can't search bookwyrm sorry, but when
|
||||
that gets implemented it will totally rule '''
|
||||
vector = SearchVector('title', weight='A') +\
|
||||
SearchVector('subtitle', weight='B') +\
|
||||
|
@ -1,3 +1,3 @@
|
||||
''' settings book data connectors '''
|
||||
|
||||
CONNECTORS = ['openlibrary', 'self_connector', 'fedireads_connector']
|
||||
CONNECTORS = ['openlibrary', 'self_connector', 'bookwyrm_connector']
|
||||
|
Reference in New Issue
Block a user