Lasse Hyyrynen

Results 7 comments of Lasse Hyyrynen

You could try to execute the two queries in one `exec` call ``` subq = select(User.user_id, func.max(User.created_at).label('maxdate')) .group_by(User.user_id).subquery('t2') query = session.exec(select(User).join(subq, and_( User.user_id == subq.c.user_id, User.created_at == subq.c.maxdate))).all() ```

> `training_status: TrainingStatus = Field(sa_column=Column(Enum(TrainingStatus)))` > > Just make sure that if you're using Alembic migration autogeneration and you require values to be stored as `Enum` in the database and...

do I really need a working alembic setup if I start from scratch? I can see that the table is created correctly but for some reason sqlmodel / psycopg2==2.9.3 are...

From scratch I mean that I create an empty postgresql server and use the `SQLModel.metadata.create_all(engine)` to create tables. I got this working with `mysql` so I guess the main issue...

Here is my hello world example `main.py`: ``` import dash from dash import html dapp = dash.Dash(__name__) dapp.layout = html.Div( id="parent", children=[ html.H1( id="H1", children="Styling using html components", style={"textAlign": "center",...

Seems like the login has just been changed. According to https://developer.mozilla.org/en-US/docs/Web/HTTP/Status: 423 : The resource that is being accessed is locked. The browser shows access to `https://login.cbc.radio-canada.ca/bef1b538-1950-4283-9b27-b096cbc18070/B2C_1A_ExternalClient_FrontEnd_Login_CBC/...` which might be...

https://login.cbc.radio-canada.ca/bef1b538-1950-4283-9b27-b096cbc18070/B2C_1A_OidcDiscoveryEndpoint_Stub/v2.0/.well-known/openid-configuration Shows the oauth2 login endpoints.