remove unused code
This commit is contained in:
parent
a95960321a
commit
2ee8249cd5
2 changed files with 0 additions and 8 deletions
|
@ -9,7 +9,6 @@ from sqlalchemy.sql.expression import text
|
||||||
from sqlalchemy import func
|
from sqlalchemy import func
|
||||||
|
|
||||||
from oxtornado import actions
|
from oxtornado import actions
|
||||||
from utils import cleanup_id
|
|
||||||
from websocket import trigger_event
|
from websocket import trigger_event
|
||||||
import meta
|
import meta
|
||||||
from . import models
|
from . import models
|
||||||
|
|
|
@ -36,13 +36,6 @@ logger = logging.getLogger(__name__)
|
||||||
|
|
||||||
ENCODING='base64'
|
ENCODING='base64'
|
||||||
|
|
||||||
def cleanup_id(key, value):
|
|
||||||
if key == 'isbn':
|
|
||||||
value = normalize_isbn(value)
|
|
||||||
if key in ('lccn', 'olid', 'oclc'):
|
|
||||||
value = ''.join([v for v in value if v!='-'])
|
|
||||||
return value
|
|
||||||
|
|
||||||
def valid_olid(id):
|
def valid_olid(id):
|
||||||
return id.startswith('OL') and id.endswith('M')
|
return id.startswith('OL') and id.endswith('M')
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue