Merge branch 'master' into gdrive
This commit is contained in:
commit
72bad08a61
@ -23,7 +23,7 @@ from polyphonic.library.models import Collection, Work, Document, Section
|
||||
from polyphonic.library.music_tags import MUSIC_TAGS, MusicTag
|
||||
from polyphonic.library import forms, models
|
||||
from polyphonic.library.pdf_utils import extract_pages, extract_and_concat
|
||||
from polyphonic.library.indexer import indexer, model_search
|
||||
from polyphonic.library.indexer import index_works, model_search
|
||||
|
||||
import logging
|
||||
|
||||
@ -304,8 +304,7 @@ class WorkAddView(CollectionMixin, FormView):
|
||||
for f in uploads:
|
||||
docs.append(work.docs.create(upload=f).pk)
|
||||
|
||||
ix = indexer.get_index()
|
||||
indexer.index_works(ix, [work])
|
||||
index_works([work])
|
||||
|
||||
if len(docs) == 1:
|
||||
return redirect("document_annotate", docs[0])
|
||||
|
||||
@ -26,12 +26,22 @@ dependencies = [
|
||||
django-debug-toolbar = "5.2"
|
||||
ruff = "^0.15.12"
|
||||
coverage = "^7.14.0"
|
||||
django-types = "^0.24.0"
|
||||
|
||||
[tool.poetry.scripts]
|
||||
poly-tool = "polyphonic.manage:main"
|
||||
|
||||
[tool.ruff]
|
||||
extend-exclude = ["**/migrations/"]
|
||||
extend-select = [
|
||||
"DJ", # flake8-django: Django-specific bugs
|
||||
"E", # pycodestyle errors
|
||||
"F", # Pyflakes
|
||||
"W", # pycodestyle warnings
|
||||
"I", # isort
|
||||
"UP", # pyupgrade
|
||||
"B", # flake8-bugbear
|
||||
]
|
||||
|
||||
[build-system]
|
||||
requires = ["poetry-core>=2.0.0,<3.0.0"]
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user