finished the file to scrape the dirstructure. there is a lot of work to do to get everything in order

This commit is contained in:
Marcel Gansfusz
2025-02-19 17:47:43 +01:00
parent f969fec15e
commit 2cf7bda010
4 changed files with 146 additions and 32 deletions

View File

@@ -20,6 +20,16 @@ app.mount("/static", StaticFiles(directory="./static"), name="static")
db = mariadb.connect(
host="localhost", user="wildserver", password="DBPassword", database="Unizeug"
)
CATEGORIES = [
"Prüfungen",
"Klausuren",
"Übungen",
"Labore",
"Unterlagen",
"Zusammenfassungen",
"Multimedia",
]
SUBCAT_CATEGORIES = ["Klausuren", "Übungen", "Labore"]
# cur = db.cursor()
@@ -91,7 +101,7 @@ async def get_submittion(
fname: Annotated[str, Form()], # Path to pdf File
fileId: Annotated[str, Form()],
sem: Annotated[str, Form()], # Semester eg. 2024W
stype: Annotated[str, Form()], # Type of File eg. Prüfung
stype: Annotated[str, Form()], # Type of File eg. Prüfung=>0
ex_date: Annotated[str, Form()], # Date of Exam only when type is exam
rects: Annotated[
str, Form()