mirror of
https://github.com/lucaspalomodevelop/indico-plugins.git
synced 2026-03-12 23:27:22 +00:00
Storage/S3: Fix bucket API
This commit is contained in:
parent
98067e6b9f
commit
867e15b57c
@ -41,7 +41,7 @@ class RHBuckets(RH):
|
||||
def _get_dynamic_info(self, backend_name, storage):
|
||||
buckets = set()
|
||||
for model in StoredFileMixin.__subclasses__():
|
||||
query = (db.session.query(db.func.split_part(model.storage_file_id, '//', 1).distinct())
|
||||
query = (db.session.query(db.func.split_part(model.storage_file_id, '//', 1).label('bucket').distinct())
|
||||
.filter(model.storage_file_id.isnot(None), model.storage_backend == backend_name))
|
||||
buckets.update(bucket for bucket, in query)
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user