Attention une mise à jour du serveur va être effectuée le vendredi 16 avril entre 12h et 12h30. Cette mise à jour va générer une interruption du service de quelques minutes.

Commit 18f6fb93 authored by Ryan Herbert's avatar Ryan Herbert Committed by Mikaël Salson

SampleSetList fix len function

parent 180a79db
......@@ -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(slist) if step is None else step
page = 0 if page is None else page
result = slist.result
......
......@@ -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:
......
Markdown is supported
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