Welcome message hook query result is an int
* jeepyb/cmd/welcome_message.py: The query result is returned as an
int type value. Previous comparisons against a string type constant
would never have matched.
Change-Id: I52abcc7d5dc34b4a27b18c902385fa4094d91e63
diff --git a/jeepyb/cmd/welcome_message.py b/jeepyb/cmd/welcome_message.py
index b791088..3536769 100644
--- a/jeepyb/cmd/welcome_message.py
+++ b/jeepyb/cmd/welcome_message.py
@@ -58,7 +58,7 @@
cursor.execute(query, searchkey)
data = cursor.fetchone()
if data:
- if data[0] == "1":
+ if data[0] == 1:
logger.info('We found a newbie: %s', uploader)
return True
else: