RAPLA-POC, LOGIN-Flow
This commit is contained in:
@ -2,6 +2,7 @@ import urllib.error
|
||||
from urllib.request import urlretrieve
|
||||
import icalendar
|
||||
import json
|
||||
import recurring_ical_events
|
||||
|
||||
|
||||
def parseURL(url: str):
|
||||
@ -37,9 +38,6 @@ def getNewRapla(url: str):
|
||||
except urllib.error.URLError:
|
||||
return -1
|
||||
|
||||
with open("calendars/rapla" + kurs + ".ical") as f:
|
||||
calendar = icalendar.Calendar.from_ical(f.read())
|
||||
# events = calendar.walk("VEVENT")
|
||||
file = open("calendars/list.json", "r+")
|
||||
jsoncal = json.load(file)
|
||||
jsoncal.update({kurs: "rapla" + kurs + ".ical"})
|
||||
|
||||
Reference in New Issue
Block a user