fixing bug us2524
This commit is contained in:
parent
4af5e44d21
commit
a670a01c5e
|
@ -120,6 +120,9 @@ class DevicesDocumentView(DeviceView):
|
||||||
@cache(datetime.timedelta(minutes=1))
|
@cache(datetime.timedelta(minutes=1))
|
||||||
def find(self, args: dict):
|
def find(self, args: dict):
|
||||||
query = self.query(args)
|
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)
|
return self.generate_post_csv(query)
|
||||||
|
|
||||||
def generate_post_csv(self, query):
|
def generate_post_csv(self, query):
|
||||||
|
|
Reference in New Issue