Commit 8aafa7f7 authored by schmittu's avatar schmittu 🍺
Browse files

debug-attempt

parent 4118f280
......@@ -295,7 +295,17 @@ def check_existing_signals(signals, context):
SignalDbo.timestamp.between(min_ts, max_ts),
)
possible_matches = q.all()
query_str = str(q.statement.compile())
params = q.statement.compile().params
print("START", datetime.datetime.now())
print(query_str)
print(params)
try:
possible_matches = q.all()
finally:
print("DONE", datetime.datetime.now())
# to remove duplicates and only keep first entry in case of duplicates:
timestamps = reversed(timestamps)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment