1
0
Fork 0
mirror of https://codeberg.org/Mo8it/AdvLabDB.git synced 2024-12-20 23:41:20 +00:00

Updated README

This commit is contained in:
Mo 2021-05-18 13:59:13 +02:00
parent 64fe85272b
commit 7e1a98b12b
2 changed files with 2 additions and 1 deletions

View file

@ -44,7 +44,7 @@ This command will print out the URL for accessing the local server. For example:
This URL leads to the home page. Now login and then navigate to `/admin` as shown on the home page after login.
## Pay attention to:
- If you create a semester, then you have to set it as the active semester for you as current user. For that, navigate to the home page / (or click on the `Links` drop down menu in the navigation bar then `Home`). Then click on the `Semester` drop down menu in the navigation bar to choose the semester you have created to be the active one. Then navigate back to `/admin`. This will be fixed soon.
- If you create a semester, then you have to set it as the active semester for you as current user.
- Many "model views" are not done yet. There is still a lot to be done.
# Documentation

View file

@ -59,6 +59,7 @@ class SemesterModelView(SecureModelView):
if is_created == False and model.parts != []:
flash("This semester already has parts!", "danger")
return
for partLabel in partsLabels:
db.session.add(Part(label=partLabel, semester=model))
db.session.commit()