Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove the compile() statement from regexp_match() #2606

Merged
merged 2 commits into from
Oct 29, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 1 addition & 4 deletions packit_service/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@
null,
)
from sqlalchemy.dialects.postgresql import array as psql_array
from sqlalchemy.dialects.postgresql import dialect as psql_dialect
from sqlalchemy.ext.declarative import declarative_base
from sqlalchemy.orm import (
Session as SQLASession,
Expand Down Expand Up @@ -2512,9 +2511,7 @@ def get_all_successful_or_in_progress_by_nvrs(
session.query(BodhiUpdateTargetModel)
.filter(
BodhiUpdateTargetModel.status.in_(("queued", "retry", "success")),
BodhiUpdateTargetModel.koji_nvrs.regexp_match(regexp).compile(
dialect=psql_dialect(),
),
BodhiUpdateTargetModel.koji_nvrs.regexp_match(regexp),
)
.all(),
)
Expand Down
Loading