Skip to content
Snippets Groups Projects
Commit 6e8e3827 authored by Nicolas Schmid's avatar Nicolas Schmid
Browse files

fix: commit statement after creating partitioned table;

only led to failure, when the next statement touched multiple of the newly (attempted) created partitions, no idea why
parent d0ecaf1c
No related branches found
No related tags found
1 merge request!45fix: commit statement after creating partitioned table;
Pipeline #3236 passed
......@@ -200,6 +200,7 @@ async def create_hydraulics(hydraulics: List[dict],
datetime.strftime(start, '%Y-%m-%d'),
datetime.strftime(end + timedelta(days=1), '%Y-%m-%d'))
await db.execute(text(statement))
await db.commit() # I have no idea why this is needed, but it is!!!!
# check whether there are already samples in the database for that time
count = await db.scalar(
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment