Skip to content

Commit

Permalink
Merge branch 'master' of github.com:fsinfuhh/django_token_bucket
Browse files Browse the repository at this point in the history
  • Loading branch information
Akasch committed May 6, 2022
2 parents f063828 + 0cc4126 commit 2e67c9e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions django_token_bucket/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ def message(self):
def get_message(self, tz=None):
if tz is None:
tz = pytz.timezone(settings.TIME_ZONE)
if isinstance(tz, str):
tz = pytz.timezone(tz)
time_available = self.time_available.astimezone(tz)
if time_available.date() != timezone.now().date():
time_format = '%Y-%m-%d %H:%M'
Expand Down
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
from setuptools import setup, find_packages


version = '0.2.2'
version = '0.2.3'


def read(*parts):
Expand Down Expand Up @@ -36,7 +36,7 @@ def read(*parts):
packages=find_packages(),
install_requires=install_requires,
classifiers=[
'Development Status :: 2 - Beta',
'Development Status :: 4 - Beta',
'Environment :: Web Environment',
'Programming Language :: Python',
'License :: OSI Approved :: MIT License',
Expand Down

0 comments on commit 2e67c9e

Please sign in to comment.