Skip to content

Commit

Permalink
Updated SQL query for open displayed.
Browse files Browse the repository at this point in the history
  • Loading branch information
jnphilipp committed Nov 12, 2013
1 parent 1f54801 commit 5743459
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion feedindicator
Original file line number Diff line number Diff line change
Expand Up @@ -1407,7 +1407,7 @@ class AppIndicator:
webbrowser.open(post[0])
sleep(0.6)

sq.execute(str('update posts set read=\'true\' where feed_url=? order by id limit %i' % itemsperfeed), (url,))
sq.execute(str('update posts set read=\'true\' where id IN (select id from posts where feed_url=? and read=\'false\' order by id limit %i)' % itemsperfeed), (url,))
sq.commit()
sq.close()

Expand Down

0 comments on commit 5743459

Please sign in to comment.