ChiSteward/rigestryWin.py
2021-07-03 17:12:13 +08:00

11 lines
261 B
Python

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")