From 5ab8aff240b93d9c1b9206932430973ca544ed06 Mon Sep 17 00:00:00 2001 From: Nikolai R Kristiansen Date: Sun, 29 Mar 2015 16:40:42 +0200 Subject: [PATCH] Learning python --- mailman_api.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mailman_api.py b/mailman_api.py index a040710..a4195cc 100644 --- a/mailman_api.py +++ b/mailman_api.py @@ -18,6 +18,7 @@ def matches_regex(pattern, _string): app = Flask(__name__) +# app.config['DEBUG'] = True @app.route('/lists/', methods=['GET']) @@ -45,7 +46,7 @@ def list_lists_with_members(): destinations = mlist.getMembers() # Matching at least one destination - if dest_regex and not matches_regex(dest_regex, destinations.join("\n")): + if dest_regex and not matches_regex(dest_regex, "\n".join(destinations)): continue lists_w_members.append({