[gnome-continuous] bot: Don't load in-progress tasks



commit 60e6d375639b7cab64544a1519575d3f7f7c574a
Author: Colin Walters <walters verbum org>
Date:   Mon Nov 18 12:47:09 2013 -0500

    bot: Don't load in-progress tasks

 extras/ircbot/bot.py |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/extras/ircbot/bot.py b/extras/ircbot/bot.py
index 04452a7..8e24017 100644
--- a/extras/ircbot/bot.py
+++ b/extras/ircbot/bot.py
@@ -109,6 +109,9 @@ class BuildGnomeOrg(irc.IRCClient):
         if metadata is None:
             return None
 
+        if not metadata['complete']:
+            return None
+
         build_name = metadata['buildPath']
 
         last_state = self._last_task_state.get(taskname)


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]