Пример #1
0
def clear_tenant(session: Session) -> None:
    session.pop('active_tenant', None)
    session.pop('active_tenant_name', None)
Пример #2
0
 def flush(cls, session: SessionBase):
     """Remove the table from the session."""
     session.pop(PAYLOAD_SESSION_DICTIONARY, None)
Пример #3
0
def pop_utm_params(session: SessionBase) -> List[UtmParamsDict]:
    """Pop the list of utm_param dicts from a session."""
    return session.pop(SESSION_KEY_UTM_PARAMS, [])
Пример #4
0
def session_logout(session: SessionBase) -> None:
    session.pop('user_data')