Fixed small bug.

This commit is contained in:
NotoriousRebel 2019-02-15 18:58:15 -05:00
parent 849e865690
commit 50ccf25832

View file

@ -37,14 +37,12 @@ def get_people(self):
handles = set()
for handle in to_parse:
handle = str(handle)
if len(handle) > 1:
if len(handle) > 2:
if ' ' in handle.strip():
handle = handle.split(' ')[0]
# strip off period at the end of exists
if handle[len(handle)-1] == '.':
handle = handle[:len(handle)-1]
handles.add(handle)
else:
handles.add(handle)
return handles