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

Added the auto update feature #251

Merged
merged 1 commit into from
Jan 20, 2024
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.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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