From a670a01c5e7038c258b7810d949b35f39a5afe72 Mon Sep 17 00:00:00 2001 From: Cayo Puigdefabregas Date: Thu, 16 Dec 2021 13:21:35 +0100 Subject: [PATCH] fixing bug us2524 --- ereuse_devicehub/resources/documents/documents.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ereuse_devicehub/resources/documents/documents.py b/ereuse_devicehub/resources/documents/documents.py index 6eb9f5f0..45148588 100644 --- a/ereuse_devicehub/resources/documents/documents.py +++ b/ereuse_devicehub/resources/documents/documents.py @@ -120,6 +120,9 @@ class DevicesDocumentView(DeviceView): @cache(datetime.timedelta(minutes=1)) def find(self, args: dict): query = self.query(args) + filters = json.loads(request.args.get('filter', {})) + ids = filters.get('ids', []) + query = self.query(args).filter(Device.id.in_(ids)) return self.generate_post_csv(query) def generate_post_csv(self, query):