Skip to content

Commit

Permalink
fix: use the package's VERSION instead of hardcoding the version
Browse files Browse the repository at this point in the history
  • Loading branch information
yuhui committed Dec 26, 2024
1 parent ffe2c48 commit 1b71dce
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion singstat/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@

"""Constants that can be used anywhere."""

from . import VERSION

BASE_API_DOMAIN = 'https://tablebuilder.singstat.gov.sg'
BASE_API_ENDPOINT = f'{BASE_API_DOMAIN}/api/table'

Expand Down Expand Up @@ -41,7 +43,7 @@

CACHE_NAME = 'singstat_cache'
CACHE_TWELVE_HOURS = 60 * 60 * 12
USER_AGENT = 'SingStat Python package/2.0.0 https://pypi.org/project/singstat'
USER_AGENT = f'SingStat Python package/{VERSION} https://pypi.org/project/singstat'

__all__ = [
'METADATA_ENDPOINT',
Expand Down

0 comments on commit 1b71dce

Please sign in to comment.