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

Hopefully Allows Round Search By Ckey #30

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
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
4 changes: 3 additions & 1 deletion yogsite/modules/rounds/routes.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
import math

from sqlalchemy import or_
from sqlalchemy import extract
from werkzeug.utils import secure_filename

from yogsite.config import cfg
Expand Down Expand Up @@ -33,7 +34,8 @@ def page_rounds():
or_(
db.Round.id.like(search_query),
db.Round.game_mode.like(search_query),
db.Round.map_name.like(search_query)
db.Round.map_name.like(search_query),
db.Round.id.like(extract("id", db.game_db.query(db.Connection_Log).filter(db.Connection_Log.ckey.like(search_query))))
)
)

Expand Down