From 4c4c96028fb7d1aebeba00c6782842724c202092 Mon Sep 17 00:00:00 2001 From: Anderson T Date: Sun, 2 Jun 2024 07:16:58 -0700 Subject: [PATCH] omg --- api.py | 2 +- sdk/schema_built/Course.py | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/api.py b/api.py index 33e367b..5d4d53c 100644 --- a/api.py +++ b/api.py @@ -67,7 +67,7 @@ def hourly(): def daily(use_cache:bool=False): controller.buildDatabase(use_cache) -daily(use_cache=True) +# daily(use_cache=True) @asynccontextmanager async def lifespan(app: FastAPI): diff --git a/sdk/schema_built/Course.py b/sdk/schema_built/Course.py index 28bf5c9..b23cd7b 100644 --- a/sdk/schema_built/Course.py +++ b/sdk/schema_built/Course.py @@ -50,9 +50,9 @@ class CourseBase(SQLModel): title: str = Field(default="", description="*Unabbreviated* title of the course e.g. ```Intro to Computer Science```.") description: Optional[str] = Field(default=None, description="Description of course.") - hours_lecture: int = Field(default=0, description="Lecture hours of the course.") - hours_seminar: int = Field(default=0, description="Lecture hours of the course.") - hours_lab: int = Field(default=0, description="Lecture hours of the course.") + hours_lecture: float = Field(default=0, description="Lecture hours of the course.") + hours_seminar: float = Field(default=0, description="Lecture hours of the course.") + hours_lab: float = Field(default=0, description="Lecture hours of the course.") # TODO: Not implemented (needs another scraper ._.) # course_outline_url: Optional[str] = Field(default=None, description="Link to course outline (if available).")