correct parser chaine
This commit is contained in:
parent
4f17444750
commit
62664cfca0
@ -160,7 +160,7 @@ class Interface:
|
||||
|
||||
def click_update(self):
|
||||
self.data.parsechaine()
|
||||
labelupdate = Label(self.resultframe, text="update chaine done"+"\r")
|
||||
labelupdate = Label(self.resultframe.interior, text="update chaine done"+"\r")
|
||||
labelupdate.pack()
|
||||
|
||||
def _openlink(self,link):
|
||||
@ -198,10 +198,10 @@ class JSONfile:
|
||||
|
||||
if RepresentsInt(firstTD.find_next().string):
|
||||
#print(firstTD.find_next().find_next().text)
|
||||
liste_chaine[int(num)] = firstTD.find_next().find_next().text
|
||||
liste_chaine[str(int(num))] = firstTD.find_next().find_next().text
|
||||
else:
|
||||
#print(firstTD.find_next().string)
|
||||
liste_chaine[int(num)] = firstTD.find_next().text
|
||||
liste_chaine[str(int(num))] = firstTD.find_next().text
|
||||
print(json.dumps(liste_chaine, indent=4))
|
||||
self.data=liste_chaine
|
||||
with open(self.datafilepath, 'w', encoding='utf-8') as f:
|
||||
|
Loading…
Reference in New Issue
Block a user