Learning python

This commit is contained in:
nikolark committed 2015-03-29 16:40:42 +02:00
1 parent 0c373984af
commit 5ab8aff240
1 file changed
+2 -1
+2 -1
View File
@@ -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({