mirror of
https://codeberg.org/Mo8it/AdvLabDB.git
synced 2024-09-19 18:31:16 +00:00
Remove SERVER_NAME
This commit is contained in:
parent
8b3f6fea89
commit
75a639d278
2 changed files with 2 additions and 4 deletions
|
@ -22,8 +22,7 @@ def initActiveSemesterMenuLinks(space, app):
|
||||||
space.add_link(
|
space.add_link(
|
||||||
MenuLink(
|
MenuLink(
|
||||||
name=str(semester),
|
name=str(semester),
|
||||||
# Using SERVER_NAME because of missing request context
|
url="/set_semester" + "?semester_id=" + str(semester.id),
|
||||||
url=settings["SERVER_NAME"] + "/set_semester" + "?semester_id=" + str(semester.id),
|
|
||||||
category="Active semester",
|
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."
|
"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:
|
else:
|
||||||
space.add_link(MenuLink(name="Logout", url=settings["SERVER_NAME"] + "/logout"))
|
space.add_link(MenuLink(name="Logout", url="/logout"))
|
||||||
|
|
||||||
|
|
||||||
def active_semester_str():
|
def active_semester_str():
|
||||||
|
|
|
@ -1,5 +1,4 @@
|
||||||
[Settings]
|
[Settings]
|
||||||
SERVER_NAME = localhost:5000
|
|
||||||
SQLITE_DB_PATH = /volumes/data/advlabdb.db
|
SQLITE_DB_PATH = /volumes/data/advlabdb.db
|
||||||
CHECK_EMAIL_DELIVERABILITY = True
|
CHECK_EMAIL_DELIVERABILITY = True
|
||||||
SECURITY_PASSWORD_LENGTH_MIN = 15
|
SECURITY_PASSWORD_LENGTH_MIN = 15
|
||||||
|
|
Loading…
Reference in a new issue