diff --git a/src/api_modules/waterpoint_profiles.py b/src/api_modules/waterpoint_profiles.py index a11afc3..7941db0 100644 --- a/src/api_modules/waterpoint_profiles.py +++ b/src/api_modules/waterpoint_profiles.py @@ -106,9 +106,9 @@ def get(self, waterpoints=None,language=None): adm1 = Adm1.objects.get(id=adminlevel1id) wp_contents = Wpcontent.objects(waterpoint=str(waterpoint.id), - content__trace__enable=True) + content__trace__enabled=True) ws_contents = Wscontent.objects(watershed=str(waterpoint.watershed.id), - content__trace__enable=True) + content__trace__enabled=True) ids=[] typecontent_name=[] for i in wp_contents: diff --git a/src/wpapi.py b/src/wpapi.py index f1cee37..c6e37c4 100644 --- a/src/wpapi.py +++ b/src/wpapi.py @@ -28,7 +28,7 @@ # Define tus endpoints en el orden deseado -@app.route('/api/v1/home') +@app.route('/') def home(): return redirect("/apidocs")