diff options
author | Erik Johnston <erik@matrix.org> | 2017-09-28 13:55:29 +0100 |
---|---|---|
committer | Erik Johnston <erik@matrix.org> | 2017-09-28 13:55:29 +0100 |
commit | e1e7d76cf16858d998884f19b141f90a0415d297 (patch) | |
tree | 47b9d20beb460c768af007b6ccdaa1d2ccd3e342 /synapse/rest/media/v1 | |
parent | Only pull out local media that were for url cache (diff) | |
download | synapse-e1e7d76cf16858d998884f19b141f90a0415d297.tar.xz |
Actually assign result to variable
Diffstat (limited to 'synapse/rest/media/v1')
-rw-r--r-- | synapse/rest/media/v1/preview_url_resource.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/synapse/rest/media/v1/preview_url_resource.py b/synapse/rest/media/v1/preview_url_resource.py index 1616809e8f..0123369a7f 100644 --- a/synapse/rest/media/v1/preview_url_resource.py +++ b/synapse/rest/media/v1/preview_url_resource.py @@ -372,7 +372,7 @@ class PreviewUrlResource(Resource): # may have a room open with a preview url thing open). # So we wait a couple of days before deleting, just in case. expire_before = now - 2 * 24 * 60 * 60 * 1000 - yield self.store.get_url_cache_media_before(expire_before) + media_ids = yield self.store.get_url_cache_media_before(expire_before) removed_media = [] for media_id in media_ids: |