From 708521d4b5c8c605e75195c8ed6518d6dc5c75a1 Mon Sep 17 00:00:00 2001 From: Klaus-Uwe Mitterer Date: Wed, 1 Mar 2017 20:55:39 +0100 Subject: [PATCH] Add .config directory to .gitignore --- .gitignore | 1 + transbot.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index 624d756..9b899b6 100644 --- a/.gitignore +++ b/.gitignore @@ -3,3 +3,4 @@ Database.db __pycache__ config.cfg *.pyc +.config/ diff --git a/transbot.py b/transbot.py index 1481b9d..0146811 100755 --- a/transbot.py +++ b/transbot.py @@ -46,7 +46,7 @@ for status in timeline: for a in accounts: two = twitools.twObject(ato=a[1], ase=a[2]) intext = re.sub(r'https?:\/\/[\S]*', '', text) - tstring = translator.translate(text, target_language=a[0])['translatedText'].replace("@", "@​") + tstring = translator.translate(intext, target_language=a[0])['translatedText'].replace("@", "@​") try: two.tweet(tstring[:140])