1
0
Fork 0
mirror of https://codeberg.org/Mo8it/AdvLabDB.git synced 2024-09-17 18:31:15 +00:00

Remove SERVER_NAME

This commit is contained in:
Mo 2022-08-10 01:14:25 +02:00
parent 8b3f6fea89
commit 75a639d278
2 changed files with 2 additions and 4 deletions

View file

@ -22,8 +22,7 @@ def initActiveSemesterMenuLinks(space, app):
space.add_link(
MenuLink(
name=str(semester),
# Using SERVER_NAME because of missing request context
url=settings["SERVER_NAME"] + "/set_semester" + "?semester_id=" + str(semester.id),
url="/set_semester" + "?semester_id=" + str(semester.id),
category="Active semester",
)
)
@ -32,7 +31,7 @@ def initActiveSemesterMenuLinks(space, app):
"ERROR: The Semester table does not exist yet! Therefore, menu links could not be generated. You can ignore this error if you are just initializing the database."
)
else:
space.add_link(MenuLink(name="Logout", url=settings["SERVER_NAME"] + "/logout"))
space.add_link(MenuLink(name="Logout", url="/logout"))
def active_semester_str():

View file

@ -1,5 +1,4 @@
[Settings]
SERVER_NAME = localhost:5000
SQLITE_DB_PATH = /volumes/data/advlabdb.db
CHECK_EMAIL_DELIVERABILITY = True
SECURITY_PASSWORD_LENGTH_MIN = 15