From c2ec4beea630ad91e04f825fcf639b132057e039 Mon Sep 17 00:00:00 2001 From: LmeSzinc <37934724+LmeSzinc@users.noreply.github.com> Date: Sat, 22 Jun 2024 23:13:25 +0800 Subject: [PATCH] Fix: Item_Calyx should not have ETA --- tasks/planner/model.py | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/tasks/planner/model.py b/tasks/planner/model.py index 860d357b0..32d903991 100644 --- a/tasks/planner/model.py +++ b/tasks/planner/model.py @@ -293,7 +293,7 @@ class StoredPlannerProxy(BaseModelWithFallback): """ Estimate remaining days to farm """ - if not self.need_farm(): + if not self.can_daily_farm(): return 0. if self.item.dungeon is None: return 0. @@ -304,12 +304,11 @@ class StoredPlannerProxy(BaseModelWithFallback): cost = self.combat_cost drop = self.drop_equivalent_green - if self.item.is_ItemWeekly: - weeks = math.ceil(remain / drop / 3) - return weeks * 7 - else: - stamina = math.ceil(remain / drop) * cost - return round(stamina / 240, 1) + # if self.item.is_ItemWeekly: + # weeks = math.ceil(remain / drop / 3) + # return weeks * 7 + stamina = math.ceil(remain / drop) * cost + return round(stamina / 240, 1) def update(self, time=False): for attr in SET_ROW_EXCLUDE: @@ -534,6 +533,7 @@ class PlannerProgressParser: name = f'Item_{row.item.name}' dic = row.model_dump(exclude=SET_ROW_EXCLUDE) dic['item'] = row.item.name + dic['time'] = str(row.time) data[name] = dic return data