Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
tonquer committed Oct 27, 2024
1 parent 13d1df6 commit 34a1f9b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
6 changes: 2 additions & 4 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,10 @@ jobs:
PACKAGENAME: bika_py37_macos
steps:
- uses: actions/checkout@v4
- name: Set up Python 3.7
- name: Set up Python 3.9
uses: actions/setup-python@v5
with:
python-version: 3.7
python-version: 3.9
- name: Install dependencies
run: |
python -m pip install --upgrade pip
Expand Down Expand Up @@ -80,7 +80,6 @@ jobs:
run: |
python -m pip install --upgrade pip
pip install pyinstaller==4.8
pip install pywin32==302
pip install -r src\requirements.txt
- name: Build
run: |
Expand Down Expand Up @@ -117,7 +116,6 @@ jobs:
run: |
python -m pip install --upgrade pip
pip install pyinstaller==4.6
pip install pywin32==302
pip install -r src\requirements_win7.txt
- name: Build
run: |
Expand Down
4 changes: 2 additions & 2 deletions src/server/sql_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -527,9 +527,9 @@ def Search2(wordList, isTitle, isAuthor, isDes, isTag, isCategory, isCreator, ca
data2 = ""
for word in andWords:
whereSql = SqlServer._GetSearchWhere(word, isTitle, isAuthor, isDes, isTag, isCategory, isCreator, True)
data2 += "{} or ".format(whereSql)
data2 += "{} and ".format(whereSql)
if data2:
data += "and ({})".format(data2.strip("or "))
data += "and ({})".format(data2.strip("and "))

data2 = ""
for word in exclude:
Expand Down

0 comments on commit 34a1f9b

Please sign in to comment.