Skip to content

Commit

Permalink
small changes to the PR
Browse files Browse the repository at this point in the history
  • Loading branch information
XiadaOku committed Aug 28, 2022
1 parent da746bd commit 9e9d779
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions src/client/VMM.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@

from interface import Ui_WizardPage

vmm_version = "1.3.1"
vmm_version = "1.3.2"
server_addr = "http://kiv.vangers.net/comod"


class VMM(QtWidgets.QWizardPage, Ui_WizardPage):
Expand Down Expand Up @@ -70,7 +71,7 @@ def __init__(self):
# создание профилей для всех модов при отсутствии сейва (спасибо кэп)
if "save.json" not in os.listdir(os.getcwd()) and "save" not in os.listdir(os.getcwd()):
try:
response = get("http://kiv.vangers.net/comod").json()
response = get(server_addr).json()
except Exception as msg:
self.errMsg(msg)

Expand Down Expand Up @@ -419,7 +420,7 @@ def refresh(self):
sys.exit(0)

try:
self.response = get("http://kiv.vangers.net/comod").json()
self.response = get(server_addr).json()
except Exception as msg:
self.errMsg(msg)

Expand Down Expand Up @@ -582,10 +583,10 @@ def install(self):

if self.nameToModID[self.combo_mods.currentText()] != "none":
try:
self.response = get("http://kiv.vangers.net/comod").json()
self.response = get(server_addr).json()
mod_id = self.nameToModID[self.combo_mods.currentText()]

file = download("http://kiv.vangers.net/comod/" + mod_id + "/get", self.edit_pathInstall.text() +
file = download(server_addr + mod_id + "/get", self.edit_pathInstall.text() +
"/Vangers [" + self.edit_profileName.text() + "]")
except Exception as msg:
self.errMsg(msg)
Expand Down

0 comments on commit 9e9d779

Please sign in to comment.