Compare commits

..

No commits in common. "b7782108e6b965d2963ee5b12f529a6f3a2ebe24" and "b1df958b6bbb7542d9f5809679545a2842adc972" have entirely different histories.

2 changed files with 4 additions and 7 deletions

2
.gitignore vendored
View File

@ -1,5 +1,3 @@
img/ img/
__pycache__/ __pycache__/
.secrets .secrets
index.html
rss.xml

View File

@ -1,11 +1,10 @@
from random import randint from random import randint
import datetime import datetime
# this will change between calls due to microseconds # might as well use the datetime we made in main.py for consistency
# better for it just to be a global from main import DATETIME_STR
DATETIME_STR = str(datetime.datetime.today()).replace(' ', "-") # updates the guid given in two places with the RSS file, essential for letting readers know
# we don't need those pesky microseconds any way # a new picture has been published
DATETIME_STR = DATETIME_STR[:-7]
# refrence: https://cyber.harvard.edu/rss/rss.html#ltguidgtSubelementOfLtitemgt # refrence: https://cyber.harvard.edu/rss/rss.html#ltguidgtSubelementOfLtitemgt