Tiny fixes found in review
This commit is contained in:
parent
0fb3d6847e
commit
ebc57da843
2 changed files with 2 additions and 3 deletions
|
@ -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
|
||||
|
|
Reference in a new issue