From 7e1a98b12be1664f739e37b6d96876cf6e424ea0 Mon Sep 17 00:00:00 2001 From: Mo8it Date: Tue, 18 May 2021 13:59:13 +0200 Subject: [PATCH] Updated README --- README.md | 2 +- advlabdb/modelViews.py | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index c00f38d..fcd783e 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/advlabdb/modelViews.py b/advlabdb/modelViews.py index b9cd7ee..a13dc6d 100644 --- a/advlabdb/modelViews.py +++ b/advlabdb/modelViews.py @@ -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()