-
Notifications
You must be signed in to change notification settings - Fork 61
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
netfunnel -> already completed error #278
base: master
Are you sure you want to change the base?
Conversation
pass "already completed" error (it occurs trying _set_complete method multiple times in short durartion)
change description and default value of "psgTpCd1", "psgInfoPerPrnb1"
for more information, see https://pre-commit.ci
if netfunnel_resp.get("status") != self.WAIT_STATUS_PASS: | ||
if netfunnel_resp.get("status") not in [ | ||
self.WAIT_STATUS_PASS, | ||
self.ALREADY_COMPLETED, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
data[f"psgTpCd{code}"] = passenger.type_code | ||
data[f"psgInfoPerPrnb{code}"] = str(passenger.count) | ||
for idx, passenger in enumerate(passengers): | ||
psgidx = idx + 1 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
감사합니다. 이 동작이 맞는지 한 번 다시 확인해볼게요.
smk/dir/loc/rq/etc SeatAttCd1, 2는 간편예매에서 변경되는 값으로, 일반 예매에서는 고정값 reserveType은 11로 확인됨
for more information, see https://pre-commit.ci
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
감사합니다. 잘 작성해주신 것 같습니다.
"psgTpCd1": "0", # 승객종류1 passenger.code (psgTpCd1~5, 1~5) | ||
"psgInfoPerPrnb1": "0", # 승객종류1 인원수 (psgInfoPerPrnb1~5) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
passenger 객체에서 만들어줘서 넘어오니 이 부분은 그냥 없애도 될 것 같습니다 (totPrnb, psgGridcnt, psgTpCd1, psgInfoPerPrnb1, 등등)
-> get_passenger_dict 에서 passenger code가 아닌 순서대로 1~5로 생성되게 수정