]> git.armaanb.net Git - lightcards.git/commitdiff
Don't clean headers
authorArmaan Bhojwani <me@armaanb.net>
Sat, 30 Jan 2021 21:42:57 +0000 (16:42 -0500)
committerArmaan Bhojwani <me@armaanb.net>
Sat, 30 Jan 2021 21:42:57 +0000 (16:42 -0500)
src/parse.py

index f96551600ebf628d836eeb44f1acd1b94757d52e..12c1073552082f147ef17539f23bba3d60a1aae7 100755 (executable)
@@ -28,7 +28,7 @@ def parse_html(html):
     for x in soup.find_all("tr"):
         outp.append([clean_text(y) for y in x.find_all("td")])
 
-    return (clean_list([clean_text(x) for x in soup.find_all("th")]),
+    return ([clean_text(x) for x in soup.find_all("th")],
             clean_list(outp))
 
 def main(file):