diff --git a/PFERD/ilias/crawler.py b/PFERD/ilias/crawler.py index 1f89e07..3164af7 100644 --- a/PFERD/ilias/crawler.py +++ b/PFERD/ilias/crawler.py @@ -130,6 +130,11 @@ class IliasCrawler: ): """ Create a new ILIAS crawler. + Warning: This will create syncronization primitives + that are tied to the currently running event + loop. This means you cant use asyncio.run but + will need to use run_until_completion when using + methodes. """ self._base_url = base_url self._client = client diff --git a/PFERD/pferd.py b/PFERD/pferd.py index 94ab93b..34fdec0 100644 --- a/PFERD/pferd.py +++ b/PFERD/pferd.py @@ -239,7 +239,6 @@ class Pferd(Location): ) self._ilias_targets.append(target) - def add_ilias_folder( self, ilias: IliasSycronizer, @@ -269,8 +268,8 @@ class Pferd(Location): file_conflict_resolver {FileConflictResolver} -- A function specifying how to deal with overwriting or deleting files. The default always asks the user. """ - PRETTY.starting_synchronizer(target, "ILIAS", "An ILIAS element by url") - + PRETTY.starting_synchronizer( + target, "ILIAS", "An ILIAS element by url") results = ilias.add_target( lambda crawler: crawler.recursive_crawl_url(full_url),