BigW Consortium Gitlab

Commit 0ca9abf8 by Forest Godfrey

Reverse order of output

parent ea8f5790
......@@ -34,11 +34,14 @@ def process_post(post):
tree = ET.parse('/tmp/posts.xml')
root = tree.getroot()
outposts = []
for post in root.findall('post'):
post_url, post_text = process_post(post)
outposts = [(post_url, post_text)] + outposts
d = datetime.datetime(2019, 2, 21, 17, 0)
t = timedelta(0,30*60,0)
for post in root.findall('post'):
for post_url, post_text in outposts:
post_time = d.strftime("%m/%d/%Y %H:%M")
post_url, post_text = process_post(post)
d = d + t
print "%s,%s,%s" % (post_time, post_text, post_url)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment