Skip to content

Commit

Permalink
fix(atoss): avoid timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
DlieBG committed May 3, 2024
1 parent 0b646ac commit a52e1f2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions api/src/atoss.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ def __init_session() -> Session:
for option in init_response.text.splitlines()
if option.startswith('[\'zul.sel.Option\'') and 'value' in option
},
cookies=init_response.cookies.get_dict(),
)

def __call(session: Session, *arguments: CallItem) -> ResponseDto:
Expand All @@ -59,6 +60,7 @@ def __call(session: Session, *arguments: CallItem) -> ResponseDto:
),
),
},
cookies=session.cookies,
)

if 'Kombination Personalnummer / PIN-Code falsch' in call_response.text:
Expand Down
1 change: 1 addition & 0 deletions api/src/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ class Session(BaseModel):
jsession: str
dt: str
selection_uuids: dict
cookies: dict

class CommandEnum(str, Enum):
on_change = 'onChange'
Expand Down

0 comments on commit a52e1f2

Please sign in to comment.