removed auto updating feature

This commit is contained in:
Droopy 2022-10-02 00:28:07 +05:30 committed by GitHub
parent 4a1e7a559e
commit c8c29a4edc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -160,22 +160,9 @@ class PrivateChatHandler:
try:
self.server_online = True
version = float(response.replace('v', ''))
if version > __version__:
self._update_version()
except:
self.error = 'Server offline'
def _update_version(self):
new_file = self._send_request(url=f'{url}/updatepartywindow?get=file')
hash = self._send_request(url=f'{url}/updatepartywindow?get=md5')
if hash and new_file:
file_hash = md5(new_file.encode()).hexdigest()
if hash == file_hash:
with open(__file__, 'w') as f:
f.write(new_file)
_ba.pushcall(ba.Call(ba.screenmessage,
'Ultra party window updated\nNeeds restart.'), True)
def _signup(self, registration_key):
data = dict(pb_id=self.myid, registration_key=registration_key)
response = self._send_request(url=f'{url}/signup', data=data)