Rename ILIAS crawler to ilias

To be consistent with the other classes' capitalisation of acronyms
This commit is contained in:
Joscha 2019-04-26 04:24:24 +00:00
parent 0891e7f1bc
commit ae6cc40fb5
2 changed files with 4 additions and 4 deletions

View File

@ -9,10 +9,10 @@ import bs4
from .ilias_authenticators import ShibbolethAuthenticator
from .organizer import Organizer
__all__ = ["ILIAS"]
__all__ = ["Ilias"]
logger = logging.getLogger(__name__)
class ILIAS:
class Ilias:
FILE_RE = re.compile(r"goto\.php\?target=(file_\d+_download)")
DIR_RE = re.compile(r"ilias\.php\?ref_id=(\d+)")
@ -22,7 +22,7 @@ class ILIAS:
self._auth = ShibbolethAuthenticator(base_path / cookie_file)
def synchronize(self, ref_id, to_dir, transform=lambda x: x, filter=lambda x: True):
logger.info(f" Synchronizing ref_id {ref_id} to {to_dir} using the ILIAS synchronizer.")
logger.info(f" Synchronizing ref_id {ref_id} to {to_dir} using the Ilias synchronizer.")
sync_path = pathlib.Path(self.base_path, to_dir)
orga = Organizer(self.base_path, sync_path)

View File

@ -295,7 +295,7 @@ def main(args):
args = [arg.lower() for arg in args]
ffm = PFERD.FfM(base_dir)
ilias = PFERD.ILIAS(base_dir, "cookie_jar")
ilias = PFERD.Ilias(base_dir, "cookie_jar")
norbert = PFERD.Norbert(base_dir)
# Semester 1