Created
August 26, 2009 19:04
-
-
Save mikeal/175721 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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