Skip to content

Commit

Permalink
fix: fix classifier param and set python env stout to 1
Browse files Browse the repository at this point in the history
  • Loading branch information
wenhwang97 committed Feb 29, 2024
1 parent 51e7bc4 commit 66978c1
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion classifier/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ def classify():
db_url = os.getenv("NOCO_DB_URL")
headers = {"xc-token": os.getenv("NOCO_XC_TOKEN")}
params = {
"where": "(status,eq,unverified)~and(isEnglish,eq,false)",
"where": "(status,eq,unverified)~and(isEnglish,eq,true)",
"limit": 5,
}

Expand Down
2 changes: 2 additions & 0 deletions scraper/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ ARG NOCO_XC_TOKEN
ENV NOCO_DB_URL=${NOCO_DB_URL}
ENV NOCO_XC_TOKEN=${NOCO_XC_TOKEN}

ENV PYTHONUNBUFFERED=1

RUN pip install --no-cache-dir -r requirements.txt

EXPOSE 5001
Expand Down
2 changes: 2 additions & 0 deletions translator/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ ENV NOCO_XC_TOKEN=${NOCO_XC_TOKEN}
ENV DEEPL_API_KEY=${DEEPL_API_KEY}
ENV GOOGLE_API_KEY=${GOOGLE_API_KEY}

ENV PYTHONUNBUFFERED=1

RUN pip install --no-cache-dir -r requirements.txt

EXPOSE 5002
Expand Down

0 comments on commit 66978c1

Please sign in to comment.