hs: deal with blank queries
parent
e9e555e101
commit
d9c2d976e2
|
@ -17,14 +17,15 @@ def search(query):
|
||||||
if len(result) <= 0:
|
if len(result) <= 0:
|
||||||
return False
|
return False
|
||||||
|
|
||||||
print "wtf"
|
|
||||||
|
|
||||||
return result
|
return result
|
||||||
|
|
||||||
def hs(phenny, input):
|
def hs(phenny, input):
|
||||||
""".hs <pid/name/email> - Search for someone on Virginia Tech People Search."""
|
""".hs <pid/name/email> - Search for someone on Virginia Tech People Search."""
|
||||||
|
|
||||||
q = input.group(2)
|
q = input.group(2)
|
||||||
|
if q is None:
|
||||||
|
return
|
||||||
|
q = q.strip()
|
||||||
|
|
||||||
# initially try search by PID
|
# initially try search by PID
|
||||||
s = search('uupid=%s' % q)
|
s = search('uupid=%s' % q)
|
||||||
|
|
Loading…
Reference in New Issue