Skip to content

Commit

Permalink
Perbaiki kasus di mana kelas pada makna bisa diklik
Browse files Browse the repository at this point in the history
Hanya terjadi jika terautentikasi
  • Loading branch information
laymonage committed Mar 21, 2020
1 parent ae27001 commit 99d6711
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion kbbi/kbbi.py
Original file line number Diff line number Diff line change
Expand Up @@ -334,7 +334,10 @@ def _init_rujukan(self, rujukan):

def _init_submakna(self, makna_label):
rujukan = makna_label.find("a")
if rujukan:
entris = makna_label.find("span", class_="entrisButton")
if entris:
entris.extract()
if rujukan and not rujukan.find("span", style="color:red"):
self._init_rujukan(rujukan)
elif makna_label.get("color") == "darkgreen":
self._init_prakategorial(makna_label)
Expand Down

0 comments on commit 99d6711

Please sign in to comment.