Skip to content

Commit

Permalink
fix: fix options for user select
Browse files Browse the repository at this point in the history
  • Loading branch information
dantetemplar committed Oct 18, 2023
1 parent 20713ff commit 3ec29e2
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions src/repositories/users/repository.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,7 @@


def SELECT_USER_BY_ID(id_: int):
return (
select(User)
.where(User.id == id_)
.options(
selectinload(**_get_options),
)
)
return select(User).where(User.id == id_).options(*_get_options)


CRUD: AbstractCRUDRepository[
Expand Down

1 comment on commit 3ec29e2

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Coverage

Coverage Report
FileStmtsMissCoverMissing
src
   exceptions.py35586%11, 42, 56, 84, 98
   main.py27967%46, 52–55, 62–67
src/app
   dependencies.py47198%29
src/app/auth
   common.py281739%12–21, 25–32, 36–44, 49–50
   dependencies.py19668%33–38, 46
   jwt.py512159%26–28, 32–36, 57–70, 79–81
src/app/event_groups
   routes.py703747%39–45, 65–76, 116–120, 140, 188–224
src/app/ics
   routes.py876525%36–45, 67–90, 115–128, 135–163, 167–187
src/app/root
   routes.py13192%48
src/app/users
   routes.py351849%36–38, 58–63, 82–84, 106–111, 130–134
src/app/workshops
   __init__.py550%1–9
   routes.py16160%1–63
src/repositories
   crud.py941089%89, 105, 108, 125, 142, 156–157, 174–180
   ownership.py13746%13–29
src/repositories/event_groups
   repository.py65986%52–55, 70–71, 88–90
src/repositories/predefined
   repository.py1433377%27, 53, 55, 62, 67–68, 147–148, 155, 162–168, 172–202
src/repositories/tags
   repository.py76396%85–87
src/repositories/users
   repository.py104595%176–188
src/repositories/workshops
   __init__.py330%1–4
   abc.py440%1–10
   repository.py34340%1–68
src/schemas
   events.py71692%48, 56, 79, 98–100
   ownership.py16194%21
   tags.py39197%36
   users.py32197%42
   workshops.py58580%1–85
src/storages/sql/models
   workshops.py31310%1–53
TOTAL173440777% 

Tests Skipped Failures Errors Time
53 2 💤 0 ❌ 0 🔥 10.900s ⏱️

Please sign in to comment.