get stream via client; fix branch name from url formatting; remove shell keyword from subprocess

This commit is contained in:
KatKatKateryna
2023-12-05 00:20:29 +08:00
parent 62733b13d8
commit 99a1c99422
2 changed files with 1 additions and 7 deletions
+1 -1
View File
@@ -131,7 +131,7 @@ class AddStreamModalDialog(QtWidgets.QWidget, FORM_CLASS):
branch_name = sw.branch_name
for br in stream.branches.items:
name = urllib.parse.quote(br.name)
if name == branch_name:
if br.name == branch_name:
branch = br
break
if sw.type == "commit":
-6
View File
@@ -91,23 +91,17 @@ To do it manually, you can run 2 following commands from QGIS Plugins panel->Pyt
result1 = subprocess.run(
[path(), "-m", "pip", "install", "requests==2.31.0"],
shell=True,
timeout=1000,
capture_output=True,
text=True,
)
result2 = subprocess.run(
[path(), "-m", "pip", "install", "urllib3==1.26.16"],
shell=True,
timeout=1000,
capture_output=True,
text=True,
)
result3 = subprocess.run(
[path(), "-m", "pip", "install", "requests_toolbelt==0.10.1"],
shell=True,
timeout=1000,
capture_output=True,
text=True,
)
return result1, result2, result3