mgurg
mgurg
Try this: ```python from sqlalchemy import func task = session.exec(select(Tasks).order_by(func.random())).first() ```
Hi, try this way: ```python db_setting = session.exec(select(Settings).where(Settings.id.in_([1,2,3]))).all() ```
Hi, I don't know if my today problem is related, but I have a error in the same area. With SQLAlchemy "1.4.x" everything was fine, after a switch to SQLAlchemy...
Try this way (copied from my test project): ```python from sqlalchemy import func session.exec(select([func.count(Users.email)]).where(Users.email == res.email)).one() ```
You have to figure out this by yourself, I'm not an expert here. I just found in the past solution for a similar problem for myself.
I recently saw two projects solving this problem: - [https://github.com/laurentS/slowapi](https://github.com/laurentS/slowapi) - [https://github.com/long2ice/fastapi-limiter](https://github.com/long2ice/fastapi-limiter)
I have similar problem (`# [PackageManager] waiting for`) using Docker, Bun 1.1.6 files: `compose.prod.yml`: ``` services: quasar-staging: build: context: . dockerfile: Dockerfile target: "production-stage" container_name: escape-room-ccui-staging ports: - "8080:8080" -...