diff --git a/recommender/__init__.py b/recommender/__init__.py index 40dad5f..31462d1 100644 --- a/recommender/__init__.py +++ b/recommender/__init__.py @@ -6,4 +6,4 @@ # which is not loaded when running `manage.py` commands (which is used by `make compile_translations`) # from .recommender import RecommenderXBlock -__version__ = '2.1.0' +__version__ = '2.1.1' diff --git a/recommender/recommender.py b/recommender/recommender.py index d1e2ad2..f4ce74c 100644 --- a/recommender/recommender.py +++ b/recommender/recommender.py @@ -285,7 +285,10 @@ def _get_onetime_url(self, filename): We benchmarked this as less than 8ms on a sandbox machine. """ if filename.startswith('fs://'): - return str(self.fs.get_url(filename.replace('fs://', ''), 1000 * 60 * 60 * 10)) + # 604800 seconds is the maximum allowed expiration by S3. + # If this is instead filesystem-backed, the timeout argument has + # no effect. + return str(self.fs.get_url(filename.replace('fs://', ''), 604800)) else: return filename