From 3d7dd1df0e14b343768bf5d56c8a7b02859e9d64 Mon Sep 17 00:00:00 2001 From: leonidastri Date: Fri, 27 Sep 2024 15:45:07 +0200 Subject: [PATCH] fix --- util/api.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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':