Set limit to 50 by default, not 1

This commit is contained in:
Hugo van Kemenade 2020-12-27 14:01:12 +02:00
parent 46a3dbf4a6
commit 08274028eb
2 changed files with 12 additions and 1 deletions

View file

@ -1149,7 +1149,7 @@ class _BaseObject:
def _get_things(self, method, thing, thing_type, params=None, cacheable=True):
"""Returns a list of the most played thing_types by this thing."""
limit = params.get("limit", 1)
limit = params.get("limit", 50)
seq = []
for node in _collect_nodes(
limit, self, self.ws_prefix + "." + method, cacheable, params