Skip to content

Commit

Permalink
bugfixes
Browse files Browse the repository at this point in the history
  • Loading branch information
m4rkw committed Nov 14, 2023
1 parent e78dc43 commit f13039b
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

## 0.0.31 - 14/11/2023

- Bugfixes

## 0.0.30 - 14/11/2023

- Bugfix
Expand Down
5 changes: 4 additions & 1 deletion monzo-payments
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,10 @@ class PaymentFundsCheck:
try:
next_salary_date = datetime.date(next_salary_date.year, next_salary_date.month, next_salary_date.day+1)
except:
next_salary_date = datetime.date(next_salary_date.year, next_salary_date.month+1, 1)
if next_salary_date.month == 12:
next_salary_date = datetime.date(next_salary_date.year+1, 1, 1)
else:
next_salary_date = datetime.date(next_salary_date.year, next_salary_date.month+1, 1)

while next_salary_date.weekday() in [5,6]:
next_salary_date = datetime.date(next_salary_date.year, next_salary_date.month, next_salary_date.day-1)
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
from setuptools import setup

setup(name='monzo-utils',
version='0.0.30',
version='0.0.31',
description='Monzo Utils',
author='Mark Wadham',
url='https://github.com/m4rkw/monzo-utils',
Expand Down

0 comments on commit f13039b

Please sign in to comment.