Added all models to the docs and fixed some command issues
parent
235ed18f7e
commit
f1a7cb61e5
|
@ -1,4 +1,5 @@
|
|||
*.pyc
|
||||
__pycache__/*
|
||||
/dist/*
|
||||
/GeoffreyApp.egg-info/*
|
||||
/GeoffreyApp.egg-info/*
|
||||
docs.sh
|
|
@ -432,7 +432,7 @@ def info(location_name):
|
|||
loc_json["items"].append(item.json)
|
||||
elif type(loc) == PublicFarm:
|
||||
loc_json["resources"] = []
|
||||
for resource in loc.resources.all():
|
||||
for resource in loc.resource.all():
|
||||
loc_json["resources"].append(resource.json)
|
||||
|
||||
return loc_json
|
||||
|
|
|
@ -25,3 +25,14 @@ Models used in Geoffrey
|
|||
.. autoclass:: GeoffreyApp.models.Tunnel
|
||||
:members:
|
||||
|
||||
.. autoclass:: GeoffreyApp.models.PublicFarm
|
||||
:members:
|
||||
|
||||
.. autoclass:: GeoffreyApp.models.Resource
|
||||
:members:
|
||||
|
||||
.. autoclass:: GeoffreyApp.models.PointOfInterest
|
||||
:members:
|
||||
|
||||
.. autoclass:: GeoffreyApp.models.Market
|
||||
:members:
|
||||
|
|
|
@ -319,6 +319,7 @@ class Market(Location):
|
|||
def json(self):
|
||||
"""
|
||||
JSON representation of the market
|
||||
|
||||
.. code-block:: json
|
||||
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue