programmeerles-ouderen

Teach programming to seniors
Log | Files | Refs

commit bb1fc3db2d6df99d8b6ac9aa25c4434f704a9574
parent e26f34979925cc50d644d8729ee567f7b6878afc
Author: Friedel Schön <[email protected]>
Date:   Thu,  7 Apr 2022 15:16:43 +0200

bug fixed demo

Diffstat:
Mpgmles/routes.py | 6+++---
Mpgmles/site.db | 0
2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/pgmles/routes.py b/pgmles/routes.py @@ -6,8 +6,8 @@ from flask_login import current_user, login_required, login_user, logout_user from PIL import Image from . import app, bcrypt, calendar, db -from .forms import (LoginForm, PostForm, RegistrationForm, SubscribeForm, - UnsubscribeForm, UpdateAccountForm) +from .forms import (LanguageForm, LoginForm, PostForm, RegistrationForm, + SubscribeForm, UnsubscribeForm, UpdateAccountForm) from .models import Classes, Language, User @@ -130,7 +130,7 @@ def update_lang(lang_id): lang.info = form.info.data db.session.commit() flash('The course has been updated!', 'success') - return redirect(url_for('home', lang_id=lang.id)) + return redirect(url_for('index', lang_id=lang.id)) elif request.method == 'GET': form.name.data = lang.name form.info.data = lang.info diff --git a/pgmles/site.db b/pgmles/site.db Binary files differ.