mirror of
https://github.com/Garmelon/PFERD.git
synced 2026-04-13 07:55:05 +02:00
update examples
This commit is contained in:
parent
c800d307db
commit
9ad176c3ca
2 changed files with 24 additions and 9 deletions
|
|
@ -75,8 +75,13 @@ def main() -> None:
|
||||||
pferd = Pferd(Path(__file__).parent, test_run=args.test_run)
|
pferd = Pferd(Path(__file__).parent, test_run=args.test_run)
|
||||||
pferd.enable_logging()
|
pferd.enable_logging()
|
||||||
|
|
||||||
|
ilias = pferd.ilias_kit(
|
||||||
|
cookies="PFERD/ilias_cookies.txt",
|
||||||
|
)
|
||||||
|
|
||||||
if not args.synchronizers or "numerik" in args.synchronizers:
|
if not args.synchronizers or "numerik" in args.synchronizers:
|
||||||
pferd.ilias_kit(
|
pferd.add_ilias_course(
|
||||||
|
ilias,
|
||||||
target="Numerik",
|
target="Numerik",
|
||||||
course_id="1083036",
|
course_id="1083036",
|
||||||
transform=tf_ss_2020_numerik,
|
transform=tf_ss_2020_numerik,
|
||||||
|
|
@ -84,7 +89,8 @@ def main() -> None:
|
||||||
)
|
)
|
||||||
|
|
||||||
if not args.synchronizers or "db" in args.synchronizers:
|
if not args.synchronizers or "db" in args.synchronizers:
|
||||||
pferd.ilias_kit(
|
pferd.add_ilias_course(
|
||||||
|
ilias,
|
||||||
target="DB",
|
target="DB",
|
||||||
course_id="1101554",
|
course_id="1101554",
|
||||||
transform=tf_ss_2020_db,
|
transform=tf_ss_2020_db,
|
||||||
|
|
@ -92,7 +98,8 @@ def main() -> None:
|
||||||
)
|
)
|
||||||
|
|
||||||
if not args.synchronizers or "rechnernetze" in args.synchronizers:
|
if not args.synchronizers or "rechnernetze" in args.synchronizers:
|
||||||
pferd.ilias_kit(
|
pferd.add_ilias_course(
|
||||||
|
ilias,
|
||||||
target="Rechnernetze",
|
target="Rechnernetze",
|
||||||
course_id="1099996",
|
course_id="1099996",
|
||||||
transform=tf_ss_2020_rechnernetze,
|
transform=tf_ss_2020_rechnernetze,
|
||||||
|
|
@ -100,7 +107,8 @@ def main() -> None:
|
||||||
)
|
)
|
||||||
|
|
||||||
if not args.synchronizers or "sicherheit" in args.synchronizers:
|
if not args.synchronizers or "sicherheit" in args.synchronizers:
|
||||||
pferd.ilias_kit(
|
pferd.add_ilias_course(
|
||||||
|
ilias,
|
||||||
target="Sicherheit",
|
target="Sicherheit",
|
||||||
course_id="1101980",
|
course_id="1101980",
|
||||||
transform=tf_ss_2020_sicherheit,
|
transform=tf_ss_2020_sicherheit,
|
||||||
|
|
@ -108,7 +116,8 @@ def main() -> None:
|
||||||
)
|
)
|
||||||
|
|
||||||
if not args.synchronizers or "pg" in args.synchronizers:
|
if not args.synchronizers or "pg" in args.synchronizers:
|
||||||
pferd.ilias_kit(
|
pferd.add_ilias_course(
|
||||||
|
ilias,
|
||||||
target="PG",
|
target="PG",
|
||||||
course_id="1106095",
|
course_id="1106095",
|
||||||
transform=tf_ss_2020_pg,
|
transform=tf_ss_2020_pg,
|
||||||
|
|
@ -116,7 +125,8 @@ def main() -> None:
|
||||||
)
|
)
|
||||||
|
|
||||||
if not args.synchronizers or "or1" in args.synchronizers:
|
if not args.synchronizers or "or1" in args.synchronizers:
|
||||||
pferd.ilias_kit(
|
pferd.add_ilias_course(
|
||||||
|
ilias,
|
||||||
target="OR1",
|
target="OR1",
|
||||||
course_id="1105941",
|
course_id="1105941",
|
||||||
dir_filter=df_ss_2020_or1,
|
dir_filter=df_ss_2020_or1,
|
||||||
|
|
@ -124,6 +134,7 @@ def main() -> None:
|
||||||
cookies="ilias_cookies.txt",
|
cookies="ilias_cookies.txt",
|
||||||
)
|
)
|
||||||
|
|
||||||
|
pferd.syncronize_ilias(ilias)
|
||||||
# Prints a summary listing all new, modified or deleted files
|
# Prints a summary listing all new, modified or deleted files
|
||||||
pferd.print_summary()
|
pferd.print_summary()
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -23,13 +23,17 @@ def main() -> None:
|
||||||
pferd = Pferd(Path(__file__).parent, test_run=args.test_run)
|
pferd = Pferd(Path(__file__).parent, test_run=args.test_run)
|
||||||
pferd.enable_logging()
|
pferd.enable_logging()
|
||||||
|
|
||||||
# Synchronize the personal desktop into the "ILIAS" directory.
|
|
||||||
# It saves the cookies, so you only need to log in again when the ILIAS cookies expire.
|
# It saves the cookies, so you only need to log in again when the ILIAS cookies expire.
|
||||||
pferd.ilias_kit_personal_desktop(
|
ilias = pferd.ilias_kit(cookies="ilias_cookies.txt")
|
||||||
|
# Synchronize the personal desktop into the "ILIAS" directory.
|
||||||
|
|
||||||
|
pferd.add_ilias_personal_desktop(
|
||||||
|
ilias,
|
||||||
"ILIAS",
|
"ILIAS",
|
||||||
cookies="ilias_cookies.txt",
|
|
||||||
)
|
)
|
||||||
|
|
||||||
|
pferd.syncronize_ilias(ilias)
|
||||||
|
|
||||||
# Prints a summary listing all new, modified or deleted files
|
# Prints a summary listing all new, modified or deleted files
|
||||||
pferd.print_summary()
|
pferd.print_summary()
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue