mirror of
https://github.com/golang/go
synced 2024-11-25 06:07:58 -07:00
dashboard: bug fix
R=golang-dev, rsc CC=golang-dev https://golang.org/cl/4535104
This commit is contained in:
parent
4c2123e534
commit
3b938f7db0
@ -376,8 +376,8 @@ def getBrokenCommit(node, builder):
|
||||
return
|
||||
|
||||
def firstResult(builder):
|
||||
q = Commit.all().order('-__key__').limit(20)
|
||||
for c in q:
|
||||
q = Commit.all().order('-__key__')
|
||||
for c in q.fetch(20):
|
||||
for i, b in enumerate(c.builds):
|
||||
p = b.split('`', 1)
|
||||
if p[0] == builder:
|
||||
@ -392,7 +392,10 @@ def nodeAfter(c):
|
||||
|
||||
def notifyBroken(c, builder):
|
||||
def send():
|
||||
n = Commit.get_by_key_name('%08x-%s' % (c.num, c.node))
|
||||
n = Commit.get(c.key())
|
||||
if n is None:
|
||||
logging.error("couldn't retrieve Commit '%s'" % c.key())
|
||||
return False
|
||||
if n.fail_notification_sent:
|
||||
return False
|
||||
n.fail_notification_sent = True
|
||||
|
Loading…
Reference in New Issue
Block a user