From: Vladislav Skukov Date: Sat, 18 May 2019 23:57:24 +0000 (+0500) Subject: пора спать наверн X-Git-Url: https://git.xn--bdkaa.com/?a=commitdiff_plain;h=2a996bde857c91da01460b5be2ed7cefb0dcceea;p=where-are-you.py.git пора спать наверн --- 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