fix
This commit is contained in:
parent
6e6effb1bc
commit
5d8997d45e
@ -94,7 +94,6 @@ def calculate_nutrition(food, weight):
|
||||
# Index-Route
|
||||
@app.route('/')
|
||||
@oidc.require_login
|
||||
@oidc.require_keycloak_role('nutri', 'user')
|
||||
def index():
|
||||
return render_template('index.html')
|
||||
|
||||
@ -102,7 +101,6 @@ def index():
|
||||
|
||||
@app.route('/get_products')
|
||||
@oidc.require_login
|
||||
@oidc.require_keycloak_role('nutri', 'user')
|
||||
def get_products():
|
||||
conn = get_db_connection()
|
||||
cursor = conn.cursor()
|
||||
@ -119,7 +117,6 @@ def get_products():
|
||||
# Route zum Hinzufügen und Berechnen von Lebensmitteln
|
||||
@app.route('/add_lm', methods=['GET'])
|
||||
@oidc.require_login
|
||||
@oidc.require_keycloak_role('nutri', 'user')
|
||||
def add_lm():
|
||||
food = request.args.get('food')
|
||||
weight = float(request.args.get('weight'))
|
||||
@ -167,7 +164,6 @@ def add_nutrition():
|
||||
|
||||
@app.route('/nutrition')
|
||||
@oidc.require_login
|
||||
@oidc.require_keycloak_role('nutri', 'user')
|
||||
def nutrition():
|
||||
return render_template('nutrition.html')
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user