Merge branch 'testing' of github.com:eReuse/devicehub-teal into testing
This commit is contained in:
commit
efa2ae9a92
|
@ -118,7 +118,7 @@ class DocumentView(DeviceView):
|
||||||
class DevicesDocumentView(DeviceView):
|
class DevicesDocumentView(DeviceView):
|
||||||
@cache(datetime.timedelta(minutes=1))
|
@cache(datetime.timedelta(minutes=1))
|
||||||
def find(self, args: dict):
|
def find(self, args: dict):
|
||||||
query = (x for x in self.query(args) if x.owner_id == g.user.id)
|
query = self.query(args)
|
||||||
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 a new issue