Beispiel #1
0
    def get(self, req):
        self.set_header("Content-Type", "text/html")
        req = json.loads(req)
        from production.golden import api

        api.runReference(req, "Testing our implementation")
        self.write("Thanks!")
Beispiel #2
0
 def get(self, req):
     self.set_header("Content-Type", "text/html")
     req = json.loads(req)
     reason_own, reason_ref = (
         req["reasons"] if "reasons" in req else ("%s playing" % req["user"], "Testing our implementation")
     )
     api.storeOwnResult(req["user"], req["result"], req["solution"], reason_own)
     api.runReference(req["solution"], reason_ref)
     self.write("Thanks!")
Beispiel #3
0
 def get(self, req):
     req = json.loads(req)
     api.runReference(req["solution"], "Testing %s" % req["user"])
     self.write("Thanks!")