]> git.xn--bdkaa.com Git - where-are-you.py.git/commitdiff
пора спать наверн
authorVladislav Skukov <v.skukov@gmail.com>
Sat, 18 May 2019 23:57:24 +0000 (04:57 +0500)
committerVladislav Skukov <v.skukov@gmail.com>
Sat, 18 May 2019 23:57:24 +0000 (04:57 +0500)
app.py
stemmer.py

diff --git a/app.py b/app.py
index eaba1b20bff9fe3ca21be6ac342a567131e3485d..bfe1bf421997493bc30f99e2162e8224effe06ba 100644 (file)
--- a/app.py
+++ b/app.py
@@ -65,10 +65,10 @@ def add_tips(game):
         game.tips.append(f'Рядом с вами протекает {o["name"]} 🌊')
 
     for d in near_objects['districts']:
-        success, district_tip = f'В зоне вашей видимости несколько районов. Один из них{create_district_tip(d["name"])}'
-        
+        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(
index 0f473a6618315b7c699566dec570f9703f2b60ea..35fa757190234f35f8578d51426d7d8c9f0fd20b 100644 (file)
@@ -21,6 +21,3 @@ def stemming(word):
 def text_stemming(text):
     normilized_text = normalize(text)
     return ' '.join(stemmer.stemWords(normilized_text.split()))
-
-
-print(text_stemming('Народной воли'))
\ No newline at end of file