Going back to sharing DATETIME_STR constant
The constant can still be shared between the two files as it was originally, it was not shared temporarily for testing purposes
This commit is contained in:
parent
e147f7ab12
commit
55d2922a09
|
@ -1,6 +1,7 @@
|
||||||
from random import randint
|
from random import randint
|
||||||
import datetime
|
import datetime
|
||||||
|
|
||||||
|
from main import DATETIME_STR
|
||||||
# updates the guid given in two places with the RSS file, essential for letting readers know
|
# updates the guid given in two places with the RSS file, essential for letting readers know
|
||||||
# a new picture has been published
|
# a new picture has been published
|
||||||
|
|
||||||
|
@ -9,12 +10,6 @@ import datetime
|
||||||
# also updates pubDate and lastBuildDate
|
# also updates pubDate and lastBuildDate
|
||||||
# finally, updates the image name as well
|
# finally, updates the image name as well
|
||||||
|
|
||||||
# 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]
|
|
||||||
|
|
||||||
def update_rss_feed(rss_file_name):
|
def update_rss_feed(rss_file_name):
|
||||||
rss_file = ""
|
rss_file = ""
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue