-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Closed
Description
Describe the bug
https://github.com/fossasia/open-event-server/blob/development/app/api/helpers/utilities.py#L28-L34 is exceedingly convoluted, does __type(x)__ compares contrary to PEP8, and contains several logic errors. A code review of this function would be a worthwhile effort. Some __doctests__ would really be helpful here.
To Reproduce
Steps to reproduce the behavior:
- Go to '...'
- Click on '....'
- Scroll down to '....'
- See error
Expected behavior
Stacktrace
Additional details (please complete the following information):
- OS: [e.g. MacOS, Ubuntu, CentOS]
- Python Version [e.g.
3.5,3.6] HEADCommit hash [e.g.4629c62]
Additional context