From 64b284835e0f92938c7c280e2e611aa47e150e27 Mon Sep 17 00:00:00 2001 From: Zuosizhu Date: Sat, 24 Jan 2026 13:44:53 +0800 Subject: [PATCH] Fix: Gems report accuracy --- res_report.py | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/res_report.py b/res_report.py index f722d943a..cc47d7e4b 100644 --- a/res_report.py +++ b/res_report.py @@ -339,13 +339,11 @@ class ResourcesReport: print(f"Post process - Resampling {name.capitalize()}") self.resample(records, name) if self.config['resample_rate'] == "M": - if len(records) >= 24 * 60: - # and name in [ - # 'oil', - # 'coin', - # 'gem', - # 'gem_modified', - # ]: + if (len(records) >= 24 * 60 + and name not in [ + 'gem', + 'gem_modified', + ]): self.config['resample_rate'] = "H" self.config['timedelta'] = timedelta(hours=1) self.resample(records, name)