From 2a996bde857c91da01460b5be2ed7cefb0dcceea Mon Sep 17 00:00:00 2001 From: Vladislav Skukov Date: Sun, 19 May 2019 04:57:24 +0500 Subject: [PATCH] =?utf8?q?=D0=BF=D0=BE=D1=80=D0=B0=20=D1=81=D0=BF=D0=B0?= =?utf8?q?=D1=82=D1=8C=20=D0=BD=D0=B0=D0=B2=D0=B5=D1=80=D0=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- app.py | 6 +++--- stemmer.py | 3 --- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/app.py b/app.py index eaba1b2..bfe1bf4 100644 --- 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( diff --git a/stemmer.py b/stemmer.py index 0f473a6..35fa757 100644 --- a/stemmer.py +++ b/stemmer.py @@ -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 -- 2.50.1