Skip to content

Commit 79e804d

Browse files
authored
Merge pull request #10 from Kalebu/main
2 parents 1bce8c8 + d6dbdbf commit 79e804d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

api/routes.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -41,11 +41,11 @@ def tanzan():
4141

4242

4343
@app.get("/api/tanzania/<region>")
44-
def regions(reg: str) -> Dict:
44+
def regions(region: str) -> Dict:
4545
"""
4646
Returns a list of all the districts in the given Region and the region's post code
4747
"""
48-
region: str = reg.lower().capitalize()
48+
region: str = region.lower().capitalize()
4949
payload = tanzania.get(region)
5050
if not payload:
5151
return jsonify({})

0 commit comments

Comments
 (0)