added farms to the info command
parent
683eeaff25
commit
235ed18f7e
|
@ -430,6 +430,10 @@ def info(location_name):
|
|||
loc_json["items"] = []
|
||||
for item in loc.shop_selling.all():
|
||||
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
|
||||
else:
|
||||
|
|
Loading…
Reference in New Issue