]> git.xn--bdkaa.com Git - where-are-you.py.git/commitdiff
fix
authorEvgenii Akentev <i@ak3n.com>
Sat, 18 May 2019 23:57:15 +0000 (02:57 +0300)
committerEvgenii Akentev <i@ak3n.com>
Sat, 18 May 2019 23:58:51 +0000 (02:58 +0300)
app.py

diff --git a/app.py b/app.py
index bfe1bf421997493bc30f99e2162e8224effe06ba..16fd0d1023cac7f4fff085d3b6ddb547910690c9 100644 (file)
--- a/app.py
+++ b/app.py
@@ -68,7 +68,7 @@ def add_tips(game):
         success, district_tip = create_district_tip(d["name"])
 
         if success:
-            game.tips.append('В зоне вашей видимости несколько районов. Один из них' + district_tip)
+            game.tips.append('В зоне вашей видимости несколько районов. Один из них ' + district_tip)
 
     for s in near_objects['streets']:
         success, summary = parse_summary(
@@ -151,8 +151,8 @@ districts_tips = {
 def create_district_tip(district_name):
     for district_key, district_tip in districts_tips.items():
         if district_key in district_name.lower():
-            return True, district_tip
-    return False, ''
+            return (True, district_tip)
+    return (False, '')
 
 
 def show_tips(game, count):