Skip to content

Instantly share code, notes, and snippets.

@mikeal
Created August 26, 2009 19:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mikeal/175721 to your computer and use it in GitHub Desktop.
Save mikeal/175721 to your computer and use it in GitHub Desktop.
rows = self.db.views.fennecResults.entireBuildsById(keys=[id1, id2])
doc1 = rows[id1]
doc2 = rows[id2]
if len(doc1) == 0 or len(doc2) == 0:
return MakoResponse("error", error="input is not a valid build id")
else:
build1 = Build(doc1[0])
build2 = Build(doc2[0])
answer = build1.compare(build2)
return MakoResponse("compare", answer = answer, build1 = build1, build2 = build2)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment