@@ -81,7 +81,6 class MyProvider(PyDataProvider): | |||||
81 | cache_product = f"tests/{p_type}" |
|
81 | cache_product = f"tests/{p_type}" | |
82 | var = _cache.get_data(cache_product, DateTimeRange(datetime.fromtimestamp(start, tz=timezone.utc), datetime.fromtimestamp(stop, tz=timezone.utc)), partial(_get_data, p_type), fragment_hours=24) |
|
82 | var = _cache.get_data(cache_product, DateTimeRange(datetime.fromtimestamp(start, tz=timezone.utc), datetime.fromtimestamp(stop, tz=timezone.utc)), partial(_get_data, p_type), fragment_hours=24) | |
83 | else: |
|
83 | else: | |
84 | print("No Cache") |
|
|||
85 | var = _get_data(p_type, start, stop) |
|
84 | var = _get_data(p_type, start, stop) | |
86 | return ((var.time,var.data), ts_type) |
|
85 | return ((var.time,var.data), ts_type) | |
87 | except Exception as e: |
|
86 | except Exception as e: |
General Comments 0
You need to be logged in to leave comments.
Login now