Skip to content

Commit

Permalink
New debug var (#435)
Browse files Browse the repository at this point in the history
* Update __init__.py

* Update transfer_hash_db.py

* Update __init__.py

Move SimpCity env var check out of IDE check.
  • Loading branch information
jbsparrow authored Jan 5, 2025
1 parent 7b89d53 commit 2c7ed99
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion cyberdrop_dl/scraper/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@

constants.RUNNING_PRERELEASE = next((tag for tag in constants.PRERELEASE_TAGS if tag in current_version), False)
RUNNING_IN_IDE = os.getenv("PYCHARM_HOSTED") or os.getenv("TERM_PROGRAM") == "vscode"
if constants.RUNNING_PRERELEASE or RUNNING_IN_IDE:
if constants.RUNNING_PRERELEASE or RUNNING_IN_IDE or os.getenv("ENABLESIMPCITY"):
CRAWLERS = ALL_CRAWLERS

if RUNNING_IN_IDE:
Expand Down
1 change: 1 addition & 0 deletions cyberdrop_dl/utils/transfer/transfer_hash_db.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@

console = Console()


def transfer_from_old_hash_table(db_path):
"""Transfers data from the old 'hash' table to new 'files' and 'temp_hash' tables, handling potential schema differences and errors.
Expand Down

0 comments on commit 2c7ed99

Please sign in to comment.