okfn / piati

python IATI data viewer
10 stars 5 forks source link

Wrong path for period-start and period-end of result #18

Closed yohanboniface closed 10 years ago

yohanboniface commented 10 years ago

According to IATI schema, the path should be result/indicator/period/period-start and result/indicator/period/period-end, but we sometimes have (missing the period node:

            <result type="2">
                <title>Résultats</title>
                <indicator>
                    <period-start>2013-01-01</period-start>
                    <period-end>2013-10-31</period-end>
                    <title>Nombre de tonnes métriques de Plumpy Sup (complément alimentaire pour les jeunes enfants) distribuées</title>
                </indicator>
                <indicator>
                    <period-start>2013-01-01</period-start>
                    <period-end>2013-10-31</period-end>
                    <title>Nombre de tonnes métriques de Corn Soya Blend (complément alimentaire pour les femmes enceintes et allaitantes) distribuées</title>
                </indicator>
                <indicator>
                    <period-start>2013-01-01</period-start>
                    <period-end>2013-10-31</period-end>
                    <title>Nombre de tonnes métriques de riz achetées localement</title>
                </indicator>
                <indicator>
                    <period-start>2013-01-01</period-start>
                    <period-end>2013-10-31</period-end>
                    <title>Nombre de brochures et livrets pour la prévention de la malnutrition et le respect de l’hygiène distribués</title>
                </indicator>
            </result>

@markbrough, thoughts?

markbrough commented 10 years ago

Should be fixed in new data once it's pulled into the datastore tonight.

yohanboniface commented 10 years ago

Seems fixed, thanks a lot! :)