diff --git a/util/api.py b/util/api.py index ca81648fd..a483f4999 100644 --- a/util/api.py +++ b/util/api.py @@ -30,9 +30,9 @@ def __init__(self, data=None, status='ok', info=None, debug_info=None): self.debug_info = debug_info @staticmethod - def ok(info=None, **xs): + def ok(**xs): """Create a successful result with an optional success message.""" - return Result(status='ok', info=info, **xs) + return Result(status='ok', **xs) def as_dict(self): if config.environment == 'development':