You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
cur.execute('SELECT rf.id,rf.title,(select count(0) from reader_article ra where ((ra.unread = 1) and (rf.id = ra.feed_id))) AS unread_count FROM reader_feed rf')
for row in cur.fetchall():
cur.execute('update reader_feed set unread_count=%s where id=%s',(row[2],row[0]))