Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
leonidastri committed Sep 27, 2024
1 parent 13aca7b commit 3d7dd1d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions util/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -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':
Expand Down

0 comments on commit 3d7dd1d

Please sign in to comment.