added farms to the info command

doc_update
Joey Hines 2019-05-11 10:47:49 -05:00
parent 683eeaff25
commit 235ed18f7e
1 changed files with 4 additions and 0 deletions

View File

@ -430,6 +430,10 @@ def info(location_name):
loc_json["items"] = [] loc_json["items"] = []
for item in loc.shop_selling.all(): for item in loc.shop_selling.all():
loc_json["items"].append(item.json) loc_json["items"].append(item.json)
elif type(loc) == PublicFarm:
loc_json["resources"] = []
for resource in loc.resources.all():
loc_json["resources"].append(resource.json)
return loc_json return loc_json
else: else: