From 781eb550108b97f962bea6e68c240d672432ecbb Mon Sep 17 00:00:00 2001 From: molaboon Date: Sat, 3 Jul 2021 17:12:13 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B4=BB=E5=8B=95=E8=A6=96=E7=AA=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- rigestryWin.py | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 rigestryWin.py diff --git a/rigestryWin.py b/rigestryWin.py new file mode 100644 index 0000000..7815c2c --- /dev/null +++ b/rigestryWin.py @@ -0,0 +1,10 @@ +from api.eventRigestry import EventRegistry +from config import CONFIG + +rigestry=EventRegistry(CONFIG['moodle']['username'], CONFIG['moodle']['password']) + +if rigestry.status: + for a in rigestry.getEventsList(): + print(a) +else: + print("NO")