Tiny fixes found in review

This commit is contained in:
Joseph Schorr 2018-11-01 17:45:39 -04:00
parent 0fb3d6847e
commit ebc57da843
2 changed files with 2 additions and 3 deletions

View file

@ -7,7 +7,6 @@ the database is removed.
"""
import logging
import features
from peewee import fn
@ -24,7 +23,7 @@ LOCATION_MAP = {}
def _get_location_row(location):
if location in LOCATION_MAP:
return LOCATION_MAP[location]
location_row = ImageStorageLocation.get(name=location)
LOCATION_MAP[location] = location_row
return location_row