Petr Messner

Results 67 comments of Petr Messner

This is weird: ``` 2020-01-18 13:25:42,112 aiohttp_session_mongo DEBUG: [Session] args=('327REDACTEDa28',) kwargs={'data': {'created': 1566820929, 'session': {'user': None, 'oauth2_state': 'A8bREDACTEDBfs'}}, 'new': False, 'max_age': 7776000} 2020-01-18 13:25:42,112 aiohttp_session_mongo DEBUG: [Session] _mapping={} ``` (I've...

Source code of Session constructor directly from Docker container: ```python class Session(MutableMapping): """Session dict-like object.""" def __init__(self, identity, *, data, new, max_age=None): self._changed = False self._mapping = {} self._identity =...

It's probably because `age > max_age` ```python >>> datetime.utcfromtimestamp(1566820929) datetime.datetime(2019, 8, 26, 12, 2, 9) >>> datetime.utcfromtimestamp(1566820929 + 7776000) datetime.datetime(2019, 11, 24, 12, 2, 9) >>> datetime.utcnow() datetime.datetime(2020, 1, 18,...

It's probably this issue: https://github.com/aio-libs/aiohttp-session/issues/344 Caused by this PR: https://github.com/aio-libs/aiohttp-session/pull/331

In the meantime, **hotfix** is to clear browser cookie.

To same pro pridavani studentu... jak jsou ted dva kurzy ve stejnem meste na stejnem miste, tak je v tom uz trochu zmatek, tak at je magickym odkazem zapiseme rovnou...

It is already being computed on backend: https://github.com/messa/pyladies-courseware/blob/b6429fd958cc9128c64bdf70a80191376418a8c3/backend/cw_backend/courses/courses.py#L152-L153 So would be better to use this flag in frontend instead of computing it again (and wrongly 😇) in frontend

Založil jsem Sentry account na e-mail `[email protected]`. Kdo má zájem, toho můžu přidat.

Spíš nějak zašedle, ✖vypadá, jako by bylo něco špatně :)

@benabraham Neměl bys prosím tip, jak to vyřešit nějak pěkně? Inspiraci, kde je to dobře vyřešené?