Skip to content

Commit 7c182f2

Browse files
authored
Merge pull request #20 from wpreimes/master
Fix bug in indexer
2 parents dad57d6 + aae55a2 commit 7c182f2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/smos/smos_l2/download.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -295,7 +295,7 @@ def sync_period(self, startdate, enddate, dry_run=False):
295295
ret = []
296296

297297
for year, ys in df.groupby(df.index.year):
298-
for month, ms in ys.groupby(df.index.month):
298+
for month, ms in ys.groupby(ys.index.month):
299299
if len(ms) == monthrange(year, month)[1]: # complete month (fast)
300300
r = self.sync(int(year), int(month), day=None, dry_run=dry_run)
301301
ret.append(r)
@@ -315,4 +315,4 @@ def sync_period(self, startdate, enddate, dry_run=False):
315315
with open(os.path.join(self.local_root, 'overview.yml'), 'w') as f:
316316
yaml.dump(props, f, default_flow_style=False, sort_keys=False)
317317

318-
return ret
318+
return ret

0 commit comments

Comments
 (0)