Read published date from feed instead of updated
This commit is contained in:
parent
a6921cc7bc
commit
2468abd1b7
|
@ -32,7 +32,7 @@ def main():
|
||||||
file_name = 'scholarship/%s.html' % slug
|
file_name = 'scholarship/%s.html' % slug
|
||||||
|
|
||||||
# Parse date
|
# Parse date
|
||||||
date = dateutil.parser.parse(d['date'])
|
date = dateutil.parser.parse(d['published'])
|
||||||
print("Date: %s" % date.strftime('%Y-%m-%d %H:%M:%S'))
|
print("Date: %s" % date.strftime('%Y-%m-%d %H:%M:%S'))
|
||||||
|
|
||||||
# Open output file
|
# Open output file
|
||||||
|
|
Loading…
Reference in New Issue