Room-11 / CVBacklog

StackOverflow CloseVote Backlog

Home Page:http://cvbacklog.gordon-oheim.biz/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

cv vs delv in json view

PeeHaa opened this issue · comments

When doing a request I also need cv vs delv in the JSON result to be able to correctly display the backlog in chatroom.

The difference is already inside the JSON data, it's the closed_date member, if it is not set it's a CV, if it is set, it's a DELV. JSON example with those two request types:

[
    {
        "question_id": 10948816,
        "closed_date": 1339197337,
        "title": "Why this regex doesn't work?",
        "closed_reason": "exact duplicate",
        "link": "http://stackoverflow.com/questions/10948816/why-this-regex-doesnt-work"
    },
    {
        "question_id": 10948111,
        "title": "How to check hours in timestamp is in between a particular range of hours?",
        "link": "http://stackoverflow.com/questions/10948111/how-to-check-hours-in-timestamp-is-in-between-a-particular-range-of-hours"
    },
...

Thanks for elaborating.