SpartaHack/SpartaHack-API

View on GitHub

Showing 160 of 183 total issues

Avoid too many return statements within this function.
Open

            return (internal_server_error, 500, headers)
Severity: Major
Found in resources/sessions.py - About 30 mins to fix

Avoid too many return statements within this function.
Open

            return (internal_server_error, 500, headers)
Severity: Major
Found in resources/applications.py - About 30 mins to fix

Avoid too many return statements within this function.
Open

            return (forbidden,403,headers)
Severity: Major
Found in resources/schedule.py - About 30 mins to fix

Avoid too many return statements within this function.
Open

                        return (f"{user.first_name} {user.last_name} is checked in!!",201,headers)
Severity: Major
Found in resources/checkin.py - About 30 mins to fix

Avoid too many return statements within this function.
Open

            return (not_found, 404, headers)
Severity: Major
Found in resources/users.py - About 30 mins to fix

Avoid too many return statements within this function.
Open

            return (internal_server_error, 500, headers)
Severity: Major
Found in resources/users.py - About 30 mins to fix

Avoid too many return statements within this function.
Open

            return (internal_server_error, 500, headers)
Severity: Major
Found in resources/users.py - About 30 mins to fix

Avoid too many return statements within this function.
Open

                return (User_Schema().dump(calling_user).data, 200, headers)
Severity: Major
Found in resources/users.py - About 30 mins to fix

Avoid too many return statements within this function.
Open

            return (forbidden, 403, headers)
Severity: Major
Found in resources/announcements.py - About 30 mins to fix

Avoid too many return statements within this function.
Open

                return (internal_server_error, 500, headers)
Severity: Major
Found in resources/faqs.py - About 30 mins to fix

Avoid too many return statements within this function.
Open

                return (internal_server_error,500,headers)
Severity: Major
Found in resources/schedule.py - About 30 mins to fix

Avoid too many return statements within this function.
Open

            return(forbidden,403,headers)
Severity: Major
Found in resources/schedule.py - About 30 mins to fix

Avoid too many return statements within this function.
Open

                            return (f"{user.first_name} {user.last_name} is checked in!! and is also a minor!",201,headers)
Severity: Major
Found in resources/checkin.py - About 30 mins to fix

Avoid too many return statements within this function.
Open

                return (User_Schema().dump(user), 200, headers)
Severity: Major
Found in resources/users.py - About 30 mins to fix

Avoid too many return statements within this function.
Open

                return (internal_server_error, 500, headers)
Severity: Major
Found in resources/announcements.py - About 30 mins to fix

Avoid too many return statements within this function.
Open

            return(forbidden, 403, headers)
Severity: Major
Found in resources/announcements.py - About 30 mins to fix

Avoid too many return statements within this function.
Open

                return (Schedule_Schema().dump(ret).data,201 ,headers)
Severity: Major
Found in resources/schedule.py - About 30 mins to fix

Avoid too many return statements within this function.
Open

            return (User_Schema().dump(calling_user), 200, headers)
Severity: Major
Found in resources/users.py - About 30 mins to fix

Avoid too many return statements within this function.
Open

                return (forbidden, 403, headers)
Severity: Major
Found in resources/users.py - About 30 mins to fix

Avoid too many return statements within this function.
Open

                    return (gone, 410, headers)
Severity: Major
Found in resources/users.py - About 30 mins to fix
Severity
Category
Status
Source
Language