From: Rudolf Polzer Date: Thu, 20 Oct 2011 19:53:51 +0000 (+0200) Subject: properly turn status to boolean X-Git-Tag: xonotic-v0.6.0~69^2~17 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=b51b62158b340705380ec964199661bddf574243;p=xonotic%2Fxonotic.git properly turn status to boolean --- diff --git a/misc/infrastructure/python/d0_blind_id.py b/misc/infrastructure/python/d0_blind_id.py index 4b2182a6..d9a1a128 100644 --- a/misc/infrastructure/python/d0_blind_id.py +++ b/misc/infrastructure/python/d0_blind_id.py @@ -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="