Skip to content

Commit

Permalink
Fix civitai URL prefix
Browse files Browse the repository at this point in the history
  • Loading branch information
yoland68 committed May 15, 2024
1 parent eff7ea0 commit ffffc11
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/pytest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.9' # Adjust the version as needed
python-version: '3.9' # Follow the min version in pyproject.toml

- name: Install dependencies
run: |
Expand All @@ -22,4 +22,4 @@ jobs:
- name: Run tests
run: |
pytest
pytest
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ repos:
hooks:
- id: pylint
args:
- --disable=R,C,W,E0401
- --disable=R,C,W,E0401
2 changes: 1 addition & 1 deletion comfy_cli/command/models/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ def check_civitai_url(url: str) -> Tuple[bool, bool, int, int]:
model_id: The model id or None if it's api url
version_id: The version id or None if it doesn't have version id info
"""
prefix = "civitai.co"
prefix = "civitai.com"
try:
if prefix in url:
# URL is civitai api download url: https://civitai.com/api/download/models/12345
Expand Down

0 comments on commit ffffc11

Please sign in to comment.