From 295c821b9d12ebbac26e0feb43ac90d020fa9812 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sybren=20A=2E=20St=C3=BCvel?= Date: Wed, 2 Nov 2016 17:55:37 +0100 Subject: [PATCH] Simplified code --- pillar/web/nodes/routes.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/pillar/web/nodes/routes.py b/pillar/web/nodes/routes.py index 0fb40aed..c9b0ac1d 100644 --- a/pillar/web/nodes/routes.py +++ b/pillar/web/nodes/routes.py @@ -435,10 +435,9 @@ def edit(node_id): embed_string = '' # Check if we want to embed the content via an AJAX call - if request.args.get('embed'): - if request.args.get('embed') == '1': - # Define the prefix for the embedded template - embed_string = '_embed' + if request.args.get('embed') == '1': + # Define the prefix for the embedded template + embed_string = '_embed' template = '{0}/edit{1}.html'.format(node_type['name'], embed_string)