Skip to content

Commit

Permalink
1
Browse files Browse the repository at this point in the history
  • Loading branch information
SirGankalot committed May 22, 2024
1 parent 8a87fce commit 98f5390
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion checker/src/checker_util_func.py
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,7 @@ async def get_user_of_userlist(
assert_equals(100 < response.status_code < 300, True, "Getting user of userlist failed")

soup = BeautifulSoup(response.text, "html.parser")
print("soup: ", soup)
li = soup.find_all("li")
print("buggy li: ", li)
li = [x.text for x in li]
Expand All @@ -176,7 +177,7 @@ async def get_user_of_userlist(
print("split2 li: ", li)
li = filter(lambda x: email + '\n' in x, li)
print("filter1 li: ", list(li)[0])
li = filter(lambda x: x != '' and x != '\n' and x != email + '\n', list(li)[0])
li = filter(lambda x: x != '' and x != '\n' and x != email + '\n', list(li)) #change to list with 1 element
print("filter2 li: ", list(li))
public_key = list(li)
#print(public_key[0].strip())
Expand Down

0 comments on commit 98f5390

Please sign in to comment.