Skip to content

Commit 938553f

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 9670ff2 commit 938553f

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

nc_py_api/ex_app/providers/task_processing.py

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -142,17 +142,19 @@ def next_task(self, provider_ids: list[str], task_types: list[str]) -> dict[str,
142142
return r
143143
return {}
144144

145-
def next_task_batch(self, provider_ids: list[str], task_types: list[str], number_of_tasks: int) -> dict[str, typing.Any]:
145+
def next_task_batch(
146+
self, provider_ids: list[str], task_types: list[str], number_of_tasks: int
147+
) -> dict[str, typing.Any]:
146148
"""
147149
Get the next n task processing tasks from Nextcloud.
148150
Available starting with Nextcloud 33
149151
Returns: {tasks: [{task: Task, provider: string}], has_more: bool}
150152
"""
151153
with contextlib.suppress(NextcloudException):
152154
if r := self._session.ocs(
153-
"GET",
154-
"/ocs/v2.php/taskprocessing/tasks_provider/next_batch",
155-
json={"providerIds": provider_ids, "taskTypeIds": task_types, "numberOfTasks": number_of_tasks},
155+
"GET",
156+
"/ocs/v2.php/taskprocessing/tasks_provider/next_batch",
157+
json={"providerIds": provider_ids, "taskTypeIds": task_types, "numberOfTasks": number_of_tasks},
156158
):
157159
return r
158160
return {"tasks": [], "has_more": False}

0 commit comments

Comments
 (0)