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

@ -182,7 +182,7 @@ class _CloudStorage(BaseStorageV2):
**self._upload_params)
def stream_write(self, path, fp, content_type=None, content_encoding=None):
""" Writes the data found in the file-like stream tot he given path. Raises an IOError
""" Writes the data found in the file-like stream to the given path. Raises an IOError
if the write fails.
"""
_, write_error = self._stream_write_internal(path, fp, content_type, content_encoding)

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