Fix validation issue

Fixes #3
This commit is contained in:
Jules 2022-03-31 21:08:34 +02:00
parent c768d7856f
commit 7613441836

View file

@ -320,7 +320,7 @@ def process(path: str, from_cache: bool = True) -> Calendar:
with open("app/cache/" + sanitize_filename(path).rstrip(".json") + ".ics") as file: with open("app/cache/" + sanitize_filename(path).rstrip(".json") + ".ics") as file:
data = file.read() data = file.read()
print("Serving precomputed file") print("Serving precomputed file")
return data #Calendar(imports=data) return Calendar(imports=data)
else: else:
o = "app/config/" + sanitize_filename(path) o = "app/config/" + sanitize_filename(path)