Commit 4394a0d6 authored by Benjamin Murauer's avatar Benjamin Murauer
Browse files

Overwrite is_multiloader for multiloaderwrapper to prevent double nested...

Overwrite is_multiloader for multiloaderwrapper to prevent double nested load() method for single-loader instances
parent 0ecd72fb
......@@ -37,6 +37,11 @@ class MultiLoaderWrapper(Loader):
"""Returns how many runs this loader will produce."""
return sum([loader.run_count for loader in self.loaders])
@property
def is_multiloader(self):
"""Prevent bug if this wrapper only has one loader as element."""
return True
@property
def configuration(self):
"""DB-Representation of this loader."""
......
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