Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
sispub
datapool
Commits
8aafa7f7
Commit
8aafa7f7
authored
Apr 04, 2019
by
schmittu
🍺
Browse files
debug-attempt
parent
4118f280
Changes
1
Hide whitespace changes
Inline
Side-by-side
datapool/instance/signal_model.py
View file @
8aafa7f7
...
...
@@ -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
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment