Add .config directory to .gitignore

This commit is contained in:
Klaus-Uwe Mitterer 2017-03-01 20:55:39 +01:00
parent 9d389494f9
commit 708521d4b5
2 changed files with 2 additions and 1 deletions

1
.gitignore vendored
View file

@ -3,3 +3,4 @@ Database.db
__pycache__
config.cfg
*.pyc
.config/

View file

@ -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])