When the query to the db returns more than one table, these are returned as a list of pd.DataFrames, which were then concatenated with pd.concat(df). However, sometimes the db only returns a single table (possibly when only one sensor on the network has posted new observations?) and pd.concat() fails when given a single pd.DataFrame rather than a list.
I've added a type hint to the get_map_data() function, and only concatenate if we indeed have a list.
This is addressing issue #50.
When the query to the db returns more than one table, these are returned as a list of pd.DataFrames, which were then concatenated with pd.concat(df). However, sometimes the db only returns a single table (possibly when only one sensor on the network has posted new observations?) and pd.concat() fails when given a single pd.DataFrame rather than a list.
I've added a type hint to the get_map_data() function, and only concatenate if we indeed have a list.