From 235ed18f7e79955371890223d547e59cdaf6d9b9 Mon Sep 17 00:00:00 2001 From: Joey Hines Date: Sat, 11 May 2019 10:47:49 -0500 Subject: [PATCH] added farms to the info command --- GeoffreyApp/api/commands.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/GeoffreyApp/api/commands.py b/GeoffreyApp/api/commands.py index 6938480..ffa721f 100644 --- a/GeoffreyApp/api/commands.py +++ b/GeoffreyApp/api/commands.py @@ -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: