If not enough food for wam - buy food and wam

This commit is contained in:
Eriks Karls 2019-09-25 09:36:42 +03:00
parent 63dd2d4f77
commit acbf1590d7

View File

@ -993,6 +993,7 @@ class Citizen(classes.CitizenAPI):
return self._do_wam_and_employee_work(wam_holding_id, employee_companies) return self._do_wam_and_employee_work(wam_holding_id, employee_companies)
elif response.get("message") == "not_enough_health_food": elif response.get("message") == "not_enough_health_food":
self.buy_food() self.buy_food()
return self._do_wam_and_employee_work(wam_holding_id, employee_companies)
else: else:
self.write_log("I was not able to wam and or employ because:\n{}".format(response)) self.write_log("I was not able to wam and or employ because:\n{}".format(response))
wam_count = self.my_companies.get_total_wam_count() wam_count = self.my_companies.get_total_wam_count()