Skip to content
Snippets Groups Projects
Commit ff69e0f8 authored by Rudolf, Michael's avatar Rudolf, Michael
Browse files

Fixed a bug that generated wrong sql queries.

parent 9cbfb9a4
No related branches found
No related tags found
No related merge requests found
......@@ -473,12 +473,12 @@ def gen_timeseries_queries(
time = np.array([u4conv.sql_key_to_time(k) for k in key_list])
if where:
queries = [
(file_path, f"SELECT {k} FROM '{table}' WHERE {where}", jj)
(file_path, f'SELECT "{k}" FROM "{table}" WHERE {where}', jj)
for jj, k in enumerate(key_list)
]
else:
queries = [
(file_path, f"SELECT {k} FROM '{table}'", jj)
(file_path, f'SELECT "{k}" FROM "{table}"', jj)
for jj, k in enumerate(key_list)
]
return time, queries
......
......@@ -22,7 +22,7 @@ def main():
project = u4proj.get_project(
required=["base_path"],
proj_path=Path(
"~/Documents/umwelt4/Convert_EGMS_to_Tiff.u4project"
"~/Documents/umwelt4/Convert_EGMS_gpkg_to_tif.u4project"
).expanduser(),
)
folder_list = [
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment