From 215b564c023de2ea37fd0d6b12136b042b40d149 Mon Sep 17 00:00:00 2001
From: Martin Mares <mj@ucw.cz>
Date: Sat, 12 Nov 2022 14:55:28 +0100
Subject: [PATCH] API: Kosmetika

---
 mo/web/api.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/mo/web/api.py b/mo/web/api.py
index a9b1b0a6..43e1777b 100644
--- a/mo/web/api.py
+++ b/mo/web/api.py
@@ -32,7 +32,7 @@ def api_find_town():
                   .order_by(db.Place.name, db.Place.place_id)
                   .limit(max_places)
                   .all())
-        if not places :
+        if not places:
             return jsonify(error='Nenalezena žádná obec. Zkuste zadat jen část názvu.')
         # XXX: Nemůže se stát, že nastane přesná shoda a k tomu příliš mnoho nepřesných?
         if len(places) >= max_places:
-- 
GitLab