Skip to content

Saturday work #8

@scripting

Description

@scripting

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.

image

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.

http://feedbase.io/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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions