Skip to content

Commit

Permalink
Update 1.0.1.4
Browse files Browse the repository at this point in the history
  • Loading branch information
OpsecGuy authored Nov 20, 2022
1 parent 7fc2992 commit 3a6bf71
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
1 change: 0 additions & 1 deletion config.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ def __init__(self) -> None:
"""
Config initialization
"""

print('Config initialization started.')
self.config_file = 'servers.json'
self.config_path = os.getcwd() + '\\' + self.config_file
Expand Down
8 changes: 4 additions & 4 deletions gui.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ def __init__(self) -> None:
"""
Window initialization
"""
self.cfg = config.Config()
self.__version__ = '1.0.1.3'
print('Window initialization started.')
self.cfg = config.Config()
self.__version__ = '1.0.1.4'

def callback(self, sender, data):
"""
Expand Down Expand Up @@ -79,7 +79,7 @@ def update(self) -> None:
dpg.set_value('ip', self.cfg.get_value(dpg.get_value('servers_list'), 'IP'))
dpg.set_value('username', self.cfg.get_value(dpg.get_value('servers_list'), 'username'))
dpg.set_value('password', self.cfg.get_value(dpg.get_value('servers_list'), 'password'))

if self.get_current_version() != self.__version__:
dpg.configure_item('b_update', show=True)

Expand Down Expand Up @@ -192,7 +192,7 @@ def get_current_version(self):
Returns:
str: current version
"""
return requests.get('https://raw.githubusercontent.com/OpsecGuy/Awesome-Server-Manager/main/version').text.replace('\n', '')
return requests.get('https://raw.githubusercontent.com/OpsecGuy/Awesome-Server-Manager/main/version', headers={'Cache-Control': 'no-cache', 'Pragma': 'no-cache'}).text.replace('\n', '')

def connect(self) -> None:
"""
Expand Down

0 comments on commit 3a6bf71

Please sign in to comment.