From bcd64695725d281d6d460bab316921a4d835c453 Mon Sep 17 00:00:00 2001 From: Takeus <68923554+TakeusV1@users.noreply.github.com> Date: Wed, 12 Feb 2025 13:10:27 +0100 Subject: [PATCH] Update r_base.py --- app/routes/r_base.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/app/routes/r_base.py b/app/routes/r_base.py index b08d998..5bdcd14 100644 --- a/app/routes/r_base.py +++ b/app/routes/r_base.py @@ -152,18 +152,18 @@ def allocation_edit_modal(net_id, ipv4): # Special Allocation if int(form.is_special.data) == 1: # DHCP - db_alloc.is_dhcp == True - db_alloc.is_gateway == False + db_alloc.is_dhcp = True + db_alloc.is_gateway = False db_alloc.hostname = None db_alloc.description = "DHCP Allocation" elif int(form.is_special.data) == 2: # Gateway - db_alloc.is_dhcp == False - db_alloc.is_gateway == True + db_alloc.is_dhcp = False + db_alloc.is_gateway = True else: # None - db_alloc.is_dhcp == False - db_alloc.is_gateway == False + db_alloc.is_dhcp = False + db_alloc.is_gateway = False db.session.commit() flash("Allocation Updated", 'success')