Skip to content
This repository was archived by the owner on Sep 22, 2021. It is now read-only.
This repository was archived by the owner on Sep 22, 2021. It is now read-only.

Problem with filtering #24

@philippejuhel

Description

@philippejuhel

I use a simple CSV file named data.csv :

name,firstname,age
bidule,marcel,45
machin,joseph,34
truc,paul,12

When I do :
http://timmy.icam-toulouse.fr/i48/?source=http://timmy.icam-toulouse.fr/eleve/data.csv&format=json
I get :
[{"nom":"bidule","prenom":"marcel","age":"45"},{"nom":"machin","prenom":"joseph","age":"34"},{"nom":"truc","prenom":"paul","age":"12"}]

OK

When I do :
http://timmy.icam-toulouse.fr/i48/?source=http://timmy.icam-toulouse.fr/eleve/data.csv&format=json&age=45 (filter age=45, the fisrt row)
I get :
[{"nom":"bidule","prenom":"marcel","age":"45"}]

OK

When I do :
http://timmy.icam-toulouse.fr/i48/?source=http://timmy.icam-toulouse.fr/eleve/data.csv&format=json&age=12 (filter age=12, the third row)
I get :
{"2":{"nom":"truc","prenom":"paul","age":"12"}}

BAD.
Why do I have {“2”: … and not [{"nom":"truc","prenom":"paul","age":"12"}] as I can expect?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions