@@ -50,8 +50,8 @@ def __init__(self, window: Tk) -> None:
50
50
self .url_update : str = "https://api.github.com/repos/VarunS2002/" \
51
51
"Python-NSE-Option-Chain-Analyzer/releases/latest"
52
52
self .headers : Dict [str , str ] = {
53
- 'user-agent' : 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, '
54
- 'like Gecko) Chrome/80 .0.3987.149 Safari/537.36' ,
53
+ 'user-agent' : 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) '
54
+ 'Chrome/130 .0.0.0 Safari/537.36' ,
55
55
'accept-language' : 'en,gu;q=0.9,hi;q=0.8' ,
56
56
'accept-encoding' : 'gzip, deflate, br' }
57
57
self .session : requests .Session = requests .Session ()
@@ -143,7 +143,6 @@ def check_for_updates(self, auto: bool = True) -> None:
143
143
try :
144
144
release_data : requests .Response = requests .get (self .url_update , headers = self .headers , timeout = 5 )
145
145
latest_version : str = release_data .json ()['tag_name' ]
146
- float (latest_version )
147
146
except Exception as err :
148
147
print (err , sys .exc_info ()[0 ], "21" )
149
148
if not auto :
@@ -919,6 +918,7 @@ def main_win(self) -> None:
919
918
top_frame .columnconfigure (0 , weight = 1 )
920
919
top_frame .pack (fill = "both" , expand = True )
921
920
921
+ # noinspection PyTypeChecker
922
922
self .sheet : tksheet .Sheet = tksheet .Sheet (top_frame , column_width = 85 , align = "center" ,
923
923
headers = self .output_columns , header_font = ("TkDefaultFont" , 9 , "bold" ),
924
924
empty_horizontal = 0 , empty_vertical = 20 , header_height = 35 )
0 commit comments