Skip to content

Commit 35e5875

Browse files
authored
Merge pull request #25 from hmlendea/fix
Fixes and cleanup
2 parents 1b3f90d + c99fe79 commit 35e5875

File tree

3 files changed

+5
-174
lines changed

3 files changed

+5
-174
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
tests.py
2+
test.sh
3+
14
*.secret
25
*.db
36
*.sh

mastodon-rss-bot.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,8 @@ def determine_content_language(text):
5959
' miliarde ' in text):
6060
language = 'ro'
6161

62-
if (does_substring_exist('Ambasadorul', text, tags) or
63-
does_substring_exist('interzis', text, tags)):
62+
if ('mbasadorul' in text or
63+
'interzis' in text):
6464
language = 'ro'
6565

6666
return language

tests.py

Lines changed: 0 additions & 172 deletions
This file was deleted.

0 commit comments

Comments
 (0)