Skip to content

Commit

Permalink
fix: env issues
Browse files Browse the repository at this point in the history
  • Loading branch information
AnsahMohammad committed May 9, 2024
1 parent 91d9324 commit 1d294a2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 2 additions & 2 deletions phantom/core/indexer.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ def __init__(self, filename="index", out="indexed", key="url", val="content") ->
self.remote_db = self.check_remote()
self.logger = Logger(self.showlogs, "Indexer")
self.log = self.logger.log
self.CHUNK_SIZE = os.environ.get("CHUNK_SIZE", 500)
self.CHUNK_LIMIT = os.environ.get("CHUNK_LIMIT", 10000)
self.CHUNK_SIZE = int(os.environ.get("CHUNK_SIZE", 500))
self.CHUNK_LIMIT = int(os.environ.get("CHUNK_LIMIT", 10000))

self.log(f"Indexer called for in: {self.in_file} out: {self.out_file}, key: {key}, val: {val}")
self.data = self.load(key=key, val=val)
Expand Down
2 changes: 0 additions & 2 deletions test_logs.txt

This file was deleted.

0 comments on commit 1d294a2

Please sign in to comment.