Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
vidjil
vidjil
Commits
f5fa8215
Commit
f5fa8215
authored
Apr 15, 2015
by
Marc Duez
Browse files
task.py : debug order/groupby
parent
7041b104
Changes
1
Hide whitespace changes
Inline
Side-by-side
server/web2py/applications/vidjil/models/task.py
View file @
f5fa8215
...
...
@@ -258,11 +258,18 @@ def run_fuse(id_file, id_config, id_data, id_fuse, clean_before=True, clean_afte
output_file
=
out_folder
+
'/'
+
output_filename
+
'.fused'
files
=
""
sequence_file_list
=
""
query
=
db
(
(
db
.
patient
.
id
==
db
.
sequence_file
.
patient_id
)
query
2
=
db
(
(
db
.
patient
.
id
==
db
.
sequence_file
.
patient_id
)
&
(
db
.
results_file
.
sequence_file_id
==
db
.
sequence_file
.
id
)
&
(
db
.
patient
.
id
==
id_patient
)
&
(
db
.
results_file
.
config_id
==
id_config
)
).
select
(
orderby
=
db
.
sequence_file
.
id
|
db
.
results_file
.
run_date
,
groupby
=
db
.
sequence_file
.
id
)
).
select
(
orderby
=
db
.
sequence_file
.
id
|
db
.
results_file
.
run_date
)
query
=
[]
sequence_file_id
=
0
for
row
in
query2
:
if
row
.
sequence_file
.
id
!=
sequence_file_id
:
query
.
append
(
row
)
sequence_file_id
=
row
.
sequence_file
.
id
for
row
in
query
:
if
row
.
results_file
.
data_file
is
not
None
:
files
+=
defs
.
DIR_RESULTS
+
row
.
results_file
.
data_file
+
" "
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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