Tiny fixes found in review
This commit is contained in:
parent
0fb3d6847e
commit
ebc57da843
2 changed files with 2 additions and 3 deletions
|
@ -182,7 +182,7 @@ class _CloudStorage(BaseStorageV2):
|
||||||
**self._upload_params)
|
**self._upload_params)
|
||||||
|
|
||||||
def stream_write(self, path, fp, content_type=None, content_encoding=None):
|
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.
|
if the write fails.
|
||||||
"""
|
"""
|
||||||
_, write_error = self._stream_write_internal(path, fp, content_type, content_encoding)
|
_, write_error = self._stream_write_internal(path, fp, content_type, content_encoding)
|
||||||
|
|
|
@ -7,7 +7,6 @@ the database is removed.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
import logging
|
import logging
|
||||||
import features
|
|
||||||
|
|
||||||
from peewee import fn
|
from peewee import fn
|
||||||
|
|
||||||
|
@ -24,7 +23,7 @@ LOCATION_MAP = {}
|
||||||
def _get_location_row(location):
|
def _get_location_row(location):
|
||||||
if location in LOCATION_MAP:
|
if location in LOCATION_MAP:
|
||||||
return LOCATION_MAP[location]
|
return LOCATION_MAP[location]
|
||||||
|
|
||||||
location_row = ImageStorageLocation.get(name=location)
|
location_row = ImageStorageLocation.get(name=location)
|
||||||
LOCATION_MAP[location] = location_row
|
LOCATION_MAP[location] = location_row
|
||||||
return location_row
|
return location_row
|
||||||
|
|
Reference in a new issue