diff options
-rw-r--r-- | python/fatcat_tools/references.py | 3 | ||||
-rw-r--r-- | python/fatcat_tools/transforms/access.py | 2 | ||||
-rw-r--r-- | python/fatcat_web/ref_routes.py | 7 |
3 files changed, 4 insertions, 8 deletions
diff --git a/python/fatcat_tools/references.py b/python/fatcat_tools/references.py index da398239..67a16602 100644 --- a/python/fatcat_tools/references.py +++ b/python/fatcat_tools/references.py @@ -6,14 +6,13 @@ See bulk citation and citation API proposals for design documentation. """ import sys -import json import datetime import argparse from typing import Optional, List, Any, Dict, Union from pydantic import BaseModel import elasticsearch -from elasticsearch_dsl import Search, Q +from elasticsearch_dsl import Search from fatcat_openapi_client import ReleaseEntity from fatcat_tools import public_api diff --git a/python/fatcat_tools/transforms/access.py b/python/fatcat_tools/transforms/access.py index 231cd2b3..add8ff3b 100644 --- a/python/fatcat_tools/transforms/access.py +++ b/python/fatcat_tools/transforms/access.py @@ -1,6 +1,6 @@ from enum import Enum -from typing import Optional, List, Any, Dict +from typing import Optional, List from pydantic import BaseModel from fatcat_openapi_client import ReleaseEntity diff --git a/python/fatcat_web/ref_routes.py b/python/fatcat_web/ref_routes.py index e24b4ac6..7c3ba5bd 100644 --- a/python/fatcat_web/ref_routes.py +++ b/python/fatcat_web/ref_routes.py @@ -3,17 +3,14 @@ Flask endpoints for reference (citation) endpoints. Eg, listing references "inbound" and "outbound" from a specific release or work. """ -from typing import Optional - -from flask import render_template, abort, redirect, request +from flask import render_template, request from fatcat_openapi_client import * -from fatcat_openapi_client.rest import ApiException from fuzzycat.grobid_unstructured import grobid_api_process_citation, transform_grobid_ref_xml, grobid_ref_to_release from fuzzycat.simple import close_fuzzy_biblio_matches, close_fuzzy_release_matches from fatcat_tools.references import enrich_inbound_refs, enrich_outbound_refs, get_inbound_refs, get_outbound_refs from fatcat_tools.transforms.access import release_access_options -from fatcat_web import app, api, auth_api +from fatcat_web import app, api from fatcat_web.forms import * from fatcat_web.entity_helpers import * |