mirror of
https://github.com/bookwyrm-social/bookwyrm.git
synced 2024-11-26 03:21:05 +00:00
Pylint fixes
This commit is contained in:
parent
13e23a868d
commit
94a6675dc4
4 changed files with 4 additions and 3 deletions
|
@ -24,5 +24,5 @@ class CalibreImporter(Importer):
|
|||
super().__init__(*args, **kwargs)
|
||||
|
||||
def get_shelf(self, normalized_row):
|
||||
# Calibre export does not indicate which shelf to use. Go with a default one for now
|
||||
# Calibre export does not indicate which shelf to use. Use a default one for now
|
||||
return Shelf.TO_READ
|
||||
|
|
|
@ -34,6 +34,7 @@ class PostgresTriggers(TestCase):
|
|||
)
|
||||
book.authors.add(author)
|
||||
book.refresh_from_db()
|
||||
# pylint: disable=line-too-long
|
||||
self.assertEqual(
|
||||
book.search_vector,
|
||||
"'cool':5B 'goodby':3A 'long':2A 'name':9 'rays':7C 'seri':8 'the':6C 'wow':4B",
|
||||
|
|
|
@ -106,7 +106,7 @@ def find_authors_by_name(name_string, description=False):
|
|||
|
||||
if titles:
|
||||
# some of the "titles" in ISNI are a little ...iffy
|
||||
# '@' is used by ISNI/OCLC to index the starting point ignoring stop words
|
||||
# @ is used by ISNI/OCLC to index the starting point ignoring stop words
|
||||
# (e.g. "The @Government of no one")
|
||||
title_elements = [
|
||||
e
|
||||
|
|
|
@ -89,7 +89,7 @@ services:
|
|||
command: celery -A celerywyrm flower --basic_auth=${FLOWER_USER}:${FLOWER_PASSWORD}
|
||||
env_file: .env
|
||||
ports:
|
||||
- ${FLOWER_PORT}
|
||||
- ${FLOWER_PORT}:${FLOWER_PORT}
|
||||
volumes:
|
||||
- .:/app
|
||||
networks:
|
||||
|
|
Loading…
Reference in a new issue