mysociety / popit

DEPRECATED - Development on PopIt has stopped and it is no longer being maintained
https://goo.gl/Vvej4Q
Other
76 stars 33 forks source link

spurious data fields are added to an uploaded image #809

Closed mhl closed 9 years ago

mhl commented 9 years ago

For example, I uploaded an image for this person:

... with the command:

curl -v -X POST \
    --header "APIKey: abcdef0123456789" \
    -F notes='Official Portrait' \
    -F source='Found it somewhere' \
    -F image='@Desktop/svens.png' \
    https://mark-test.popit.mysociety.org/api/v0.1/persons/55115704658b705d703c8719/image

... but the corresponding object in the images array contains these spurious fields:

        "start_date": null,
        "end_date": null,
        "birth_date": null,
        "death_date": null,
        "founding_date": null,
        "dissolution_date": null
mhl commented 9 years ago

Actually, I think this is a duplicate of https://github.com/mysociety/popit/issues/714