-
Notifications
You must be signed in to change notification settings - Fork 3
Description
Lots of cleanup work today and tomorrow.
But first I want to get the query for the user/subscriptions page.
That is, the page for a user showing what they're subscribed to.
Here's the page for myself.
http://feedbase.io/?username=davewiner
Note the undefined values in the third column.
This is where the countSubs value is supposed to be.
It's undefined because there is no countSubs field in the object returned for the subscription. I want to fix that.
http://feedbase.io/getsubs?username=davewiner
For each feed, countSubs should be the subscriber count for the feed across all users. The same value that appears in the hotlist.
Naively I tried taking the query for the hotlist, and hacked it up.
SELECT subscriptions.feedurl, feeds.title, COUNT(subscriptions.feedurl) AS countSubs FROM subscriptions, feeds WHERE subscriptions.feedurl = feeds.feedurl and subscriptions.username = "davewiner" GROUP BY feedurl ORDER BY countSubs DESC;
But the countSubs value for each was 1.
Any help much appreciated! ;-)
Dave
