Skip to content

Commit

Permalink
Merge pull request #251 from Sherwin-14/dates
Browse files Browse the repository at this point in the history
Added the auto update feature
  • Loading branch information
mfisher87 committed Jan 20, 2024
2 parents 72b1fd8 + d15f617 commit d6a32ac
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions usaon_benefit_tool/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,7 @@ def before_request():
repo_url=repo.REPO_URL,
doc_url=repo.DOC_URL,
discuss_url=repo.DISCUSS_URL,
current_year=repo.CURRENT_YEAR,
)

md = Markdown(extensions=['fenced_code'])
Expand Down
3 changes: 3 additions & 0 deletions usaon_benefit_tool/constants/repo.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
import datetime as dt

REPO_URL = "https://github.com/nsidc/usaon-benefit-tool/"
DOC_URL = "https://usaon-benefit-tool.readthedocs.io/"
DISCUSS_URL = "https://github.com/nsidc/usaon-benefit-tool/discussions"
CURRENT_YEAR = dt.datetime.now(tz=dt.UTC).date().year
2 changes: 1 addition & 1 deletion usaon_benefit_tool/templates/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
<footer>
<hr />
<div class="footer-items">
<p>&copy; USAON &amp; NSIDC 2024</p>
<p>&copy; USAON &amp; NSIDC {{current_year}}</p>
<p>Version: v{{ __version__ }}</p>
<div class="d-flex">
<a href="{{repo_url}}">
Expand Down

0 comments on commit d6a32ac

Please sign in to comment.