]> andersk Git - jira-zephyrbot.git/commitdiff
Write the new timestamp after sending Zephyrs.
authorAnders Kaseorg <andersk@mit.edu>
Tue, 17 Feb 2009 21:51:10 +0000 (16:51 -0500)
committerAnders Kaseorg <andersk@mit.edu>
Tue, 17 Feb 2009 21:51:10 +0000 (16:51 -0500)
jirabot.py

index b9b5be481879790ff12062542c3a80cd4be01684..8c2372114b45270522ee4f23cd3e746a5d2d8362 100755 (executable)
@@ -130,13 +130,11 @@ while True:
 
     zephyrs = (feed_to_zephyrs('issue', issues_rss, parse_issue) +
                feed_to_zephyrs('comment', comments_rss, parse_comment))
-
-    open(time_file_new, 'w').write(str(new_time))
-
     zephyrs.sort(key=lambda tz: tz[0])
     for (t, z) in zephyrs:
         z.send()
 
+    open(time_file_new, 'w').write(str(new_time))
     os.rename(time_file_new, time_file)
 
     time.sleep(60)
This page took 0.045894 seconds and 5 git commands to generate.