Compare commits

..

2 Commits

Author SHA1 Message Date
emma b7782108e6 ignore index.html and rss.xml from commits
These files change in ways that don't need to be
kept track of when testing
2024-10-23 22:42:30 -04:00
emma bd57c33858 Removed import of main.py in rss_update.py
The import was causing main() to run twice and
download two cat images
2024-10-23 22:41:09 -04:00
2 changed files with 7 additions and 4 deletions

2
.gitignore vendored
View File

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

View File

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