Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
vidjil
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
1,692
Issues
1,692
List
Boards
Labels
Service Desk
Milestones
Merge Requests
85
Merge Requests
85
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
vidjil
vidjil
Commits
18f6fb93
Commit
18f6fb93
authored
Oct 21, 2020
by
Ryan Herbert
Committed by
Mikaël Salson
Nov 20, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
SampleSetList fix len function
parent
180a79db
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
server/web2py/applications/vidjil/controllers/sample_set.py
server/web2py/applications/vidjil/controllers/sample_set.py
+1
-1
server/web2py/applications/vidjil/models/sample_set_list.py
server/web2py/applications/vidjil/models/sample_set_list.py
+1
-1
No files found.
server/web2py/applications/vidjil/controllers/sample_set.py
View file @
18f6fb93
...
...
@@ -226,7 +226,7 @@ def all():
slist
=
SampleSetList
(
type
)
# failsafe if filtered display all results
step
=
len
(
list
)
if
step
is
None
else
step
step
=
len
(
s
list
)
if
step
is
None
else
step
page
=
0
if
page
is
None
else
page
result
=
slist
.
result
...
...
server/web2py/applications/vidjil/models/sample_set_list.py
View file @
18f6fb93
...
...
@@ -98,7 +98,7 @@ class SampleSetList():
self
.
result
=
query_gss
def
__len__
(
self
):
return
len
(
self
.
element_ids
)
return
len
(
self
.
result
)
def
filter_by_tags
(
query
,
table
,
tags
):
if
tags
is
not
None
and
len
(
tags
)
>
0
:
...
...
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