Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix a small flake8 issue with wrong indentation. #319

Merged
merged 1 commit into from Feb 7, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 2 additions & 2 deletions Changelog.md
Expand Up @@ -4,8 +4,8 @@

### Bugfixes

- Fixed United Kingdom bank holiday for 2002 and 2012.

- Fixed United Kingdom bank holiday for 2002 and 2012 (#315).
- Fix a small flake8 issue with wrong indentation (#319).

## 4.0.0 (2019-01-24)

Expand Down
12 changes: 6 additions & 6 deletions workalendar/core.py
Expand Up @@ -760,12 +760,12 @@ def get_variable_days(self, year):
conversion_method = getattr(
self.calverter, '%s_to_jd' % self.conversion_method)
for month, day, label in self.get_islamic_holidays():
for y in years:
jd = conversion_method(y, month, day)
g_year, g_month, g_day = self.calverter.jd_to_gregorian(jd)
if g_year == year:
holiday = date(g_year, g_month, g_day)
days.append((holiday, label))
for y in years:
jd = conversion_method(y, month, day)
g_year, g_month, g_day = self.calverter.jd_to_gregorian(jd)
if g_year == year:
holiday = date(g_year, g_month, g_day)
days.append((holiday, label))
return days


Expand Down