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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user