diff --git a/app/crud/files_crud.py b/app/crud/files_crud.py index 3106a4b4..85b3c62d 100644 --- a/app/crud/files_crud.py +++ b/app/crud/files_crud.py @@ -2,7 +2,6 @@ import usfm_grammar from lxml import etree - from dependencies import log def extract_dict_chapter(converted_content:dict, chapter:int) -> dict: @@ -80,4 +79,3 @@ def parse_with_usfm_grammar(input_usfm, output_format=usfm_grammar.Format.JSON, output_content = extract_usx_chapter(output_content, chapter) output_content = etree.tostring(output_content, encoding='unicode', pretty_print=True) #pylint: disable=I1101 return output_content - \ No newline at end of file diff --git a/app/routers/filehandling_apis.py b/app/routers/filehandling_apis.py index deed4d30..d32aedd3 100644 --- a/app/routers/filehandling_apis.py +++ b/app/routers/filehandling_apis.py @@ -10,6 +10,7 @@ get_user_or_none from custom_exceptions import NotAvailableException, GenericException + router = APIRouter() #pylint: disable=too-many-arguments,unused-argument @@ -69,4 +70,3 @@ async def parse_uploaded_usfm(request:Request, log.debug("output_format: %s, content_filter: %s", output_format, content_filter) return files_crud.parse_with_usfm_grammar( input_usfm.USFM, output_format, content_filter, chapter) - \ No newline at end of file diff --git a/app/test/test_file_ops.py b/app/test/test_file_ops.py index 6c8e1ab6..5f5b8cf0 100644 --- a/app/test/test_file_ops.py +++ b/app/test/test_file_ops.py @@ -37,6 +37,7 @@ def test_usfm_to_json(): found_verse = True break assert found_verse + for usfm_input in gospel_books_data: resp = client.put(f"{UNIT_URL}usfm/to/json?content_filter=scripture-paragraph", @@ -102,4 +103,3 @@ def test_usfm_to_usx(): print(resp.json()) assert resp.json().startswith("") - \ No newline at end of file diff --git a/requirements.txt b/requirements.txt index 3829a51c..29681a20 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,3 +1,4 @@ + SQLAlchemy==1.4.41 python-gitlab==3.9.0 fastapi==0.101.1