forked from Hay1tsme/artemis
diva: fix start request
This commit is contained in:
parent
53c74c6511
commit
f836b5dd21
@ -475,7 +475,7 @@ class DivaBase:
|
|||||||
profile_dict.pop("version")
|
profile_dict.pop("version")
|
||||||
|
|
||||||
for k, v in profile_dict.items():
|
for k, v in profile_dict.items():
|
||||||
# if hasattr(resp, k):
|
if hasattr(resp, k):
|
||||||
setattr(resp, k, v)
|
setattr(resp, k, v)
|
||||||
response = "&ps_result=1"
|
response = "&ps_result=1"
|
||||||
|
|
||||||
|
@ -125,6 +125,8 @@ class BaseResponse:
|
|||||||
def make(self) -> str:
|
def make(self) -> str:
|
||||||
ret = ""
|
ret = ""
|
||||||
for k, v in vars(self).items():
|
for k, v in vars(self).items():
|
||||||
|
if type(v) == bool:
|
||||||
|
v = int(v)
|
||||||
ret += f"{k}={v}&"
|
ret += f"{k}={v}&"
|
||||||
|
|
||||||
if ret[-1] == "&":
|
if ret[-1] == "&":
|
||||||
|
@ -106,6 +106,9 @@ class StartResponse(BaseResponse):
|
|||||||
#self.cv_bv: str = "-1,-1,-1,-1"
|
#self.cv_bv: str = "-1,-1,-1,-1"
|
||||||
self.cv_bv: str = "-1,-1,-1,-1"
|
self.cv_bv: str = "-1,-1,-1,-1"
|
||||||
self.cv_bf: str = "-1,-1,-1,-1"
|
self.cv_bf: str = "-1,-1,-1,-1"
|
||||||
|
self.cnp_cid=-1
|
||||||
|
self.cnp_val=-1
|
||||||
|
self.cnp_rr=-1
|
||||||
self.my_qst_id: str = ",".join(["-1"] * 25)
|
self.my_qst_id: str = ",".join(["-1"] * 25)
|
||||||
self.my_qst_sts: str = ",".join("0" * 5) + "," + ",".join(["-1"] * 20)
|
self.my_qst_sts: str = ",".join("0" * 5) + "," + ",".join(["-1"] * 20)
|
||||||
self.my_qst_prgrs: str = ",".join("0" * 5) + "," + ",".join(["-1"] * 20)
|
self.my_qst_prgrs: str = ",".join("0" * 5) + "," + ",".join(["-1"] * 20)
|
||||||
|
Loading…
Reference in New Issue
Block a user