BuildForSDG / BuildForSDG/team-272-SMES-Server

Method could be a function

Open
#53 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
2
Forks
3
PR merge metrics
No merged PRs in 30d

Description

### [Codacy](https://app.codacy.com/gh/BuildForSDG/team-272-SMES-Server/commit?cid=469587798) detected an issue:
#### Message: `Method could be a function`


#### Occurred on:
+ **Commit**: b3ff0019795419a392647e530bc5f7651d3a0fd8
+ **File**: [funder/views.py](https://github.com/BuildForSDG/team-272-SMES-Server/blob/b3ff0019795419a392647e530bc5f7651d3a0fd8/funder/views.py)
+ **LineNum**: [16](https://github.com/BuildForSDG/team-272-SMES-Server/blob/b3ff0019795419a392647e530bc5f7651d3a0fd8/funder/views.py#L16)
+ **Code**: `def post(self, request,):`


#### Currently on:
+ **Commit**: 8f6fa99e6d0a77f76cbc85b03106c0442fe4d105
+ **File**: [funder/views.py](https://github.com/BuildForSDG/team-272-SMES-Server/blob/8f6fa99e6d0a77f76cbc85b03106c0442fe4d105/funder/views.py)
+ **LineNum**: [16](https://github.com/BuildForSDG/team-272-SMES-Server/blob/8f6fa99e6d0a77f76cbc85b03106c0442fe4d105/funder/views.py#L16)

Contributor guide

No contributing guide indexed for this repository

Research direction

Open funder/views.py at line 16 and read the surrounding view class and its post method. Confirm what Codacy means by “Method could be a function,” then make the smallest change that resolves the warning without changing the view’s behavior; verify the project’s available checks afterward.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
backend
Issue type
Refactor
Difficulty
1/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.