Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions config.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@

class Config:
RUN_INTERVAL = 1200
MIN_BOUNTY = 3
GITHUB_TOKEN = "your_token"
14 changes: 14 additions & 0 deletions main.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@

import time
from config import Config
from scanner import TaskScanner

def main():
config = Config()
scanner = TaskScanner(config)

while True:
tasks = scanner.scan()
for task in tasks:
process_task(task)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Critical: Undefined function call

process_task() is called but never defined or imported. This will raise a NameError and crash the application as soon as the first task is processed.

# Need to either define the function or import it:
from processor import process_task  # if it exists elsewhere
# OR
def process_task(task):
    # implementation
    pass

Spotted by Graphite

Fix in Graphite


Is this helpful? React 👍 or 👎 to let us know.

time.sleep(config.RUN_INTERVAL)
Loading