Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Possible redundant util function #6598

Open
rdimaio opened this issue Mar 25, 2024 · 0 comments
Open

Possible redundant util function #6598

rdimaio opened this issue Mar 25, 2024 · 0 comments

Comments

@rdimaio
Copy link
Contributor

rdimaio commented Mar 25, 2024

It seems like render_json_list is exactly the same as render_json.

def render_json(**data):
""" JSON render function
"""
return json.dumps(data, cls=APIEncoder)
def render_json_list(list_):
""" JSON render function for list
"""
return json.dumps(list_, cls=APIEncoder)

Is render_json_list actually needed? If not, it should be removed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant