diff options
Diffstat (limited to 'ogcp')
-rw-r--r-- | ogcp/views.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/ogcp/views.py b/ogcp/views.py index 4086a10..2bb4713 100644 --- a/ogcp/views.py +++ b/ogcp/views.py @@ -6,8 +6,9 @@ from ogcp import app def parse_ips(checkboxes_dict): ips = set() - for ips_list in checkboxes_dict.values(): - ips.update(ips_list.split(' ')) + for key, ips_list in checkboxes_dict.items(): + if key != 'csrf_token': + ips.update(ips_list.split(' ')) return ips @app.before_request |