Commit 5fb291b5 authored by Qusai Al Shidi's avatar Qusai Al Shidi
Browse files

Fixed get_omni_data to get all months instead of months-1

parent ee68b591
...@@ -99,7 +99,13 @@ def get_omni_data(time_from, time_to, **kwargs): ...@@ -99,7 +99,13 @@ def get_omni_data(time_from, time_to, **kwargs):
return_data[name] = [] return_data[name] = []
# Iterate monthly to save RAM # Iterate monthly to save RAM
for date in rrule.rrule(rrule.MONTHLY, dtstart=time_from, until=time_to): for date in rrule.rrule(rrule.MONTHLY,
dtstart=dt.datetime(time_from.year,
time_from.month,
1),
until=dt.datetime(time_to.year,
time_to.month,
25)):
suffix = 'omni_min' suffix = 'omni_min'
suffix += str(date.year) + str(date.month).zfill(2) suffix += str(date.year) + str(date.month).zfill(2)
suffix += '.asc' suffix += '.asc'
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment