Skip to content

Commit

Permalink
Merge branch 'stable'
Browse files Browse the repository at this point in the history
  • Loading branch information
nijel committed May 1, 2021
2 parents 90fe6e7 + 4b481d3 commit 40e7ff1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion weblate/metrics/wrapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ def get_month_activity(self, year, month, cached_results):
if cache_key in cached_results:
return cached_results[cache_key]
numdays = monthrange(year, month)[1]
daily = self.get_daily_activity(date(year, month, 1), numdays)
daily = self.get_daily_activity(date(year, month, numdays), numdays - 1)
result = sum(daily.values())
cache.set(cache_key, result, None)
return result
Expand Down

0 comments on commit 40e7ff1

Please sign in to comment.