view gpp/downloads/fixtures/downloads_extensions.json @ 388:c3231af55778

For #191; r410 is wrong: it is returning the wrong posts. Rework. MySQL is not using an index on our query, and it is taking 10+ seconds. Replace this slow query with a loop that loops over the public forums, then sorts and returns the posts.
author Brian Neal <bgneal@gmail.com>
date Sat, 19 Mar 2011 05:03:51 +0000
parents 953c71f382df
children
line wrap: on
line source
[
    {
        "pk": 7, 
        "model": "downloads.allowedextension", 
        "fields": {
            "extension": ".gif"
        }
    }, 
    {
        "pk": 9, 
        "model": "downloads.allowedextension", 
        "fields": {
            "extension": ".jpeg"
        }
    }, 
    {
        "pk": 8, 
        "model": "downloads.allowedextension", 
        "fields": {
            "extension": ".jpg"
        }
    }, 
    {
        "pk": 6, 
        "model": "downloads.allowedextension", 
        "fields": {
            "extension": ".m4a"
        }
    }, 
    {
        "pk": 10, 
        "model": "downloads.allowedextension", 
        "fields": {
            "extension": ".mov"
        }
    }, 
    {
        "pk": 3, 
        "model": "downloads.allowedextension", 
        "fields": {
            "extension": ".mp3"
        }
    }, 
    {
        "pk": 5, 
        "model": "downloads.allowedextension", 
        "fields": {
            "extension": ".mp4"
        }
    }, 
    {
        "pk": 2, 
        "model": "downloads.allowedextension", 
        "fields": {
            "extension": ".pdf"
        }
    }, 
    {
        "pk": 13, 
        "model": "downloads.allowedextension", 
        "fields": {
            "extension": ".png"
        }
    }, 
    {
        "pk": 1, 
        "model": "downloads.allowedextension", 
        "fields": {
            "extension": ".txt"
        }
    }, 
    {
        "pk": 4, 
        "model": "downloads.allowedextension", 
        "fields": {
            "extension": ".wma"
        }
    }, 
    {
        "pk": 11, 
        "model": "downloads.allowedextension", 
        "fields": {
            "extension": ".zip"
        }
    }
]