remove unused code

This commit is contained in:
j 2016-03-17 15:09:53 +01:00
parent a95960321a
commit 2ee8249cd5
2 changed files with 0 additions and 8 deletions

View File

@ -9,7 +9,6 @@ from sqlalchemy.sql.expression import text
from sqlalchemy import func
from oxtornado import actions
from utils import cleanup_id
from websocket import trigger_event
import meta
from . import models

View File

@ -36,13 +36,6 @@ logger = logging.getLogger(__name__)
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):
return id.startswith('OL') and id.endswith('M')