Skip to content

Commit

Permalink
Merge pull request #6 from urbanishimwe/urbanishimwe/add-feature
Browse files Browse the repository at this point in the history
adding more functions and fixing bugs
  • Loading branch information
Kasulejoseph committed Dec 13, 2019
2 parents f86f26a + 9cbcef8 commit 7b8b8ca
Show file tree
Hide file tree
Showing 8 changed files with 117 additions and 222,668 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Expand Up @@ -15,4 +15,5 @@ var/
*.egg
*.eggs
.mypy_cache/
.vscode
.vscode
env/
1 change: 0 additions & 1 deletion .travis.yml
Expand Up @@ -4,7 +4,6 @@ python:
- "3.6"

install:
- pip install -r requirements.txt
- pip install coveralls

script: coverage run --source rwalocation rwalocation/main.py
Expand Down
3 changes: 2 additions & 1 deletion MANIFEST.in
@@ -1,3 +1,4 @@
# Things to include in the built package (besides the packages defined in setup.py)
include README.md
include LICENSE
include LICENSE
include rwalocation/data.json
5 changes: 0 additions & 5 deletions requirements.txt

This file was deleted.

17 changes: 13 additions & 4 deletions rwalocation/__init__.py
Expand Up @@ -2,8 +2,17 @@

app = Province()

def district():
print(app.district())
def district(district_name=None):
if district_name:
return app.district(district_name)
return app.district()

def province():
print(app.province())
def province(province_name=None):
if province_name:
return app.province(province_name)
return app.province()

def location(location_name=None):
if location_name:
return app.location(location_name)
return app.location()

0 comments on commit 7b8b8ca

Please sign in to comment.