nsidc / usaon-benefit-tool

Application for configuring USAON Benefit Tool value tree analysis surveys and gathering input from respondents
https://usaon-benefit-tool.readthedocs.io/
MIT License
0 stars 3 forks source link

Auto-update copyright year #247

Open mfisher87 opened 8 months ago

mfisher87 commented 8 months ago

This is super low-priority, but it'd be nice to have :)

Sherwin-14 commented 8 months ago

Hey, do you have some specific suggestions regarding this.

mfisher87 commented 8 months ago

Hey Sherwin, good to hear from you :) I think one good way is to continue using the Jinja global mechanism we're using to pass in the documentation URLs, etc., and use that to pass current_year=dt.date.today().year. What do you think?

Another option would be to pass in the whole datetime module so then templates can use it to do arbitrary date stuff.

I don't have strong feelings either way, and it would be easy to change later if we want.

Sherwin-14 commented 8 months ago

Hey, I too had thought about the solutions that you suggested and i was thinking maybe we should make a single file where we can incorporate all the changes like this one , i think that would help a lot in identifying all the changes.

mfisher87 commented 8 months ago

maybe we should make a single file where we can incorporate all the changes like this one , i think that would help a lot in identifying all the changes.

Not sure I get it 100%. Do you mean create a single Jinja template for footer; or create a single Python file for the code which handles configuring the globals?