On 12-Apr-2012, at 4:36 PM, Ben Companjen wrote:

> Hi,
> 
> While running statistics on the datadumps, I found a couple of records
> with errors in the classifications.
> I think they are still in an old format (a list of objects with name
> and value, instead of an object of names and lists of values):
> { ...
> "classifications": [
>          {
>            "name": "dewey_decimal_class",
>            "value": "911"
>          },
>          {
>            "name": "lc_classifications",
>            "value": "G1030"
>          }
>    ],
> ...
> }
> 
> I wrote a script to fix this:
> https://github.com/bencomp/openlibrary/blob/master/scripts/2012/02/upgradeclassifications.py
> Does it look ok?

The script looks good.

> Can someone use a bot account to run this script on these records?

Do you have a bot account? If not create one and let me know. I'll enable the 
required permissions.

Thanks for your wonderful efforts, Ben!

Anand
_______________________________________________
Ol-tech mailing list
[email protected]
http://mail.archive.org/cgi-bin/mailman/listinfo/ol-tech
To unsubscribe from this mailing list, send email to 
[email protected]

Reply via email to