Skip to content

typed=True or False works the other way around #20

@wbijster

Description

@wbijster

When I pass typed = True, the UntypedDataSet is downloaded and the other way around.

E.g.

cbsodata.get_data(tableid, dir='D:/jsondata/', typed=False)

returns the TypedDataSet.

Probably this code

# Download only the typed or untyped data

typed_or_not_str = "TypedDataSet" if typed else "UntypedDataSet"
metadata_table_names.remove(typed_or_not_str)

should be like this?:

typed_or_not_str = "UntypedDataSet" if typed else "TypedDataSet"
metadata_table_names.remove(typed_or_not_str)

in order to remove the option that was not chosen.

Kind regards, Wouter

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions