diff options
author | Will Hunt <will@half-shot.uk> | 2018-05-08 15:31:53 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-05-08 15:31:53 +0100 |
commit | fee045001a3de4dcda77a70099acc89acd507aec (patch) | |
tree | edff2bf76d97635f2c3a899367925a5f86a1a4bb | |
parent | Make MediaLimitsResource Leafy (diff) | |
download | synapse-fee045001a3de4dcda77a70099acc89acd507aec.tar.xz |
Restructure __init__
-rw-r--r-- | synapse/rest/media/v1/limits_resource.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/synapse/rest/media/v1/limits_resource.py b/synapse/rest/media/v1/limits_resource.py index 64f41191ab..3cb5f0244b 100644 --- a/synapse/rest/media/v1/limits_resource.py +++ b/synapse/rest/media/v1/limits_resource.py @@ -23,9 +23,10 @@ class MediaLimitsResource(Resource): def __init__(self, hs): Resource.__init__(self) - self.limits_dict = {} config = hs.get_config() - self.limits_dict["upload_size"] = config.max_upload_size + self.limits_dict = { + "upload_size": config.max_upload_size, + } def render_GET(self, request): respond_with_json(request, 200, self.limits_dict, send_cors=True) |