Compare commits
2 Commits
b1df958b6b
...
b7782108e6
Author | SHA1 | Date |
---|---|---|
emma | b7782108e6 | |
emma | bd57c33858 |
|
@ -1,3 +1,5 @@
|
||||||
img/
|
img/
|
||||||
__pycache__/
|
__pycache__/
|
||||||
.secrets
|
.secrets
|
||||||
|
index.html
|
||||||
|
rss.xml
|
|
@ -1,10 +1,11 @@
|
||||||
from random import randint
|
from random import randint
|
||||||
import datetime
|
import datetime
|
||||||
|
|
||||||
# might as well use the datetime we made in main.py for consistency
|
# this will change between calls due to microseconds
|
||||||
from main import DATETIME_STR
|
# better for it just to be a global
|
||||||
# updates the guid given in two places with the RSS file, essential for letting readers know
|
DATETIME_STR = str(datetime.datetime.today()).replace(' ', "-")
|
||||||
# a new picture has been published
|
# we don't need those pesky microseconds any way
|
||||||
|
DATETIME_STR = DATETIME_STR[:-7]
|
||||||
|
|
||||||
# refrence: https://cyber.harvard.edu/rss/rss.html#ltguidgtSubelementOfLtitemgt
|
# refrence: https://cyber.harvard.edu/rss/rss.html#ltguidgtSubelementOfLtitemgt
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue