location_quantities --> locationQuantities

This commit is contained in:
Marcel Nijenhof
2020-02-10 22:40:06 +01:00
parent 7a08d94d54
commit bbc2cfe460
3 changed files with 4 additions and 4 deletions

View File

@@ -117,7 +117,7 @@
"metadata": {},
"outputs": [],
"source": [
"quantities_hoek = rws.location_quantities(\"hoekvanholland\")"
"quantities_hoek = rws.locationQuantities(\"hoekvanholland\")"
]
},
{

View File

@@ -79,8 +79,8 @@ Request the list of quantities and return a ddApiQuntitie object.
"""
return(ddApiQuantitie(self.get(self.url + "/quantities")["results"]))
def location_quantities(self, location):
"""location_quantities(location)
def locationQuantities(self, location):
"""locationQuantities(location)
location: A dd-api location (e.g. hoekvanholland)

View File

@@ -17,7 +17,7 @@ def quantities(rws):
print(f)
def quantitiesHoekvanHolland(rws):
q = rws.location_quantities("hoekvanholland")
q = rws.locationQuantities("hoekvanholland")
print(type(q))
for f in q.quantities():
print(f)