]> git.rm.cloudns.org Git - xonotic/xonotic.git/commitdiff
properly turn status to boolean
authorRudolf Polzer <divverent@xonotic.org>
Thu, 20 Oct 2011 19:53:51 +0000 (21:53 +0200)
committerRudolf Polzer <divverent@xonotic.org>
Thu, 20 Oct 2011 19:53:51 +0000 (21:53 +0200)
misc/infrastructure/python/d0_blind_id.py

index 4b2182a64312f5ed814ef10766d365e96ff7c505..d9a1a12851434b75602ccf569952000536a0caae 100644 (file)
@@ -81,7 +81,7 @@ def d0_blind_id_verify(sig, querystring, postdata=None): #-> (idfp, status)
                checker.wait()
                if checker.returncode != 0:
                        return (None, None)
-               return (idfp, int(status))
+               return (idfp, (status == "1"))
 
 if __name__ == "__main__":
        sig = "gQEBERjDsnVNr4qrYkvaevguF4ypPZHq0yiXfMMKwlu7+kY3HuI8zHx2WhiYj+q26re5uamQ9r8umh54CEJ7zqZAz8IavVblWYznzee9WjIBAB1FeHwILGlKOCDpGBikoZBkMxI4MqjCPzDPAkDMrd1DK0FsWOTpWljLgNGfACTKcgKBAQGPqnGoD6GhuHLYN+Sf73ROColneBdJ7ttuVwm32FvI8LuD5aLDll7bpqfHTWhgbTW02CYvkTAYtoz2RZmIGK5ZHHaM/V6vcSXnq2ab/7mFRiag7D5OUsmIFY9E3IqcqtP7+wXSVgiNFY3DBPy27bXjk8ZJ9nUD5dQBL9sG8TzWd4EBAYrTMfF82EBgsVArIaQjeOuJC3bkPzP5b3El/ZCHkDShpu7wZ82h/82B4W5Ep3KXpgu+YAEULt+5i2WbsfRSXeVZctzD4A++MBqQx9VuN/KsxgHS/20tRiBgd1VElhRD8KJ0lbkxYNcHSkpWSMDFS+eFmizcM3/XQNQ7ukAmM3lkgQEBIZR+FpDFLoGg9mIu2RH9O7lWdifpVhqjrEnvkr4KdB6JzBXAwVPmt1NAVDjGRI/ELlTysOx1b9F2EgdJejY5LgcVxz6irwEckx0z+L10A6Ca2lsGR1E+rViFffNNIJv34dNKgaCInyUNCeBei0AF8KLXLHhRTiBvSVBi6ANb/lY="