1
0
mirror of https://github.com/0O0o0oOoO00/Alas.git synced 2026-05-14 08:49:24 +08:00

Fix: Gems report accuracy

This commit is contained in:
Zuosizhu
2026-01-24 13:44:53 +08:00
parent 511249a4b9
commit 64b284835e

View File

@@ -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)