Skip to content

Commit 1443ac2

Browse files
authored
Merge pull request #26 from hmlendea/duplicates
Improved duplicate entry detection
2 parents 35e5875 + 12ba280 commit 1443ac2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

mastodon-rss-bot.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,8 +111,8 @@ def determine_content_language(text):
111111
print('Entry found: ' + feed_entry_id)
112112

113113
db.execute(
114-
'SELECT * FROM entries WHERE feed_entry_id = ? AND rss_feed_url = ? and mastodon_username = ? and mastodon_instance = ?',
115-
(feed_entry_id, rss_feed_url, mastodon_username, mastodon_instance))
114+
'SELECT * FROM entries WHERE feed_entry_id = ? AND mastodon_username = ? AND mastodon_instance = ?',
115+
(feed_entry_id, mastodon_username, mastodon_instance))
116116
last = db.fetchone()
117117

118118
if 'published_parsed' in feed_entry:

0 commit comments

Comments
 (0)