Skip to content
This repository was archived by the owner on Dec 8, 2023. It is now read-only.

Commit 5f6966b

Browse files
committed
Fixed flake 8
1 parent 8f0de57 commit 5f6966b

1 file changed

Lines changed: 1 addition & 7 deletions

File tree

alma/endpoints/exports.py

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -35,14 +35,8 @@ def get_file(self, export_id: str, export_format: ExportFormat = None):
3535
return BytesIO(response.resp.content)
3636

3737
def fetch_all(self, limit: int = 5, **filters):
38-
args = {"limit": limit}
39-
40-
if filters:
41-
args.update(filters)
42-
args[attribute] = value
43-
38+
args = {"limit": limit, **filters}
4439
response = self.request(self.EXPORTS_PATH).set_query_params(args).get()
45-
4640
next_page = partial(self.fetch_all, limit=limit, **filters)
4741
return PaginatedResults(response.json, Export, next_page)
4842

0 commit comments

Comments
 (0)