mirror of
https://git.anonymousland.org/anonymousland/synapse-product.git
synced 2024-12-11 11:24:21 -05:00
Fix pyflakes and pep8 warnings
This commit is contained in:
parent
5da65085d1
commit
2f804a7072
@ -49,7 +49,8 @@ class MediaRepositoryResource(Resource):
|
|||||||
|
|
||||||
Clients can get thumbnails by supplying a desired width and height::
|
Clients can get thumbnails by supplying a desired width and height::
|
||||||
|
|
||||||
=> GET /_matrix/media/v1/thumbnail/<media-id>?width=<w>&height=<h> HTTP/1.1
|
=> GET /_matrix/media/v1
|
||||||
|
/thumbnail/<media-id>?width=<w>&height=<h> HTTP/1.1
|
||||||
|
|
||||||
<= HTTP/1.1 200 OK
|
<= HTTP/1.1 200 OK
|
||||||
Content-Type: image/jpeg or image/png
|
Content-Type: image/jpeg or image/png
|
||||||
|
@ -29,6 +29,7 @@ import logging
|
|||||||
|
|
||||||
logger = logging.getLogger(__name__)
|
logger = logging.getLogger(__name__)
|
||||||
|
|
||||||
|
|
||||||
class UploadResource(resource.Resource):
|
class UploadResource(resource.Resource):
|
||||||
|
|
||||||
def __init__(self, hs, filepaths):
|
def __init__(self, hs, filepaths):
|
||||||
|
@ -78,7 +78,7 @@ class MediaRepositoryStore(SQLBaseStore):
|
|||||||
|
|
||||||
def store_cached_remote_media(self, origin, media_id, media_type,
|
def store_cached_remote_media(self, origin, media_id, media_type,
|
||||||
media_length, time_now_ms, upload_name,
|
media_length, time_now_ms, upload_name,
|
||||||
filesytem_id):
|
filesystem_id):
|
||||||
return self._simple_insert(
|
return self._simple_insert(
|
||||||
"remote_media_cache",
|
"remote_media_cache",
|
||||||
{
|
{
|
||||||
@ -103,7 +103,6 @@ class MediaRepositoryStore(SQLBaseStore):
|
|||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
def store_remote_media_thumbnail(self, origin, media_id, thumbnail_width,
|
def store_remote_media_thumbnail(self, origin, media_id, thumbnail_width,
|
||||||
thumbnail_height, thumbnail_type,
|
thumbnail_height, thumbnail_type,
|
||||||
thumbnail_length, filesystem_id):
|
thumbnail_length, filesystem_id):
|
||||||
|
Loading…
Reference in New Issue
Block a user