Skip to content

Commit

Permalink
Merge pull request #16 from DigiKlausur/async_fix
Browse files Browse the repository at this point in the history
Fix list_all of TaskManager
  • Loading branch information
tmetzl authored Oct 7, 2024
2 parents 7d356ca + f079199 commit 4967458
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion e2xauthoring/managers/taskmanager.py
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,8 @@ async def list(self, pool):
async def list_all(self):
pool_manager = TaskPoolManager(self.coursedir)
tasks = []
for pool in pool_manager.list():
pool_list = await pool_manager.list()
for pool in pool_list:
pool_tasks = await self.list(pool.name)
tasks.extend(pool_tasks)
return tasks
Expand Down

0 comments on commit 4967458

Please sign in to comment.