Skip to content
Draft
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
2 changes: 1 addition & 1 deletion collectoss/tasks/github/pull_requests/tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ def process_pull_requests(pull_requests, task_name, repo_id, logger, db_session)
# pr_urls are gloablly unique across github so we are using it to determine whether a pull_request we collected is already in the table
# specified in pr_return_columns is the columns of data we want returned. This data will return in this form; {"pr_url": url, "pull_request_id": id}
logger.info(f"{task_name}: Inserting prs of length: {len(pr_dicts)}")
pr_natural_keys = ["repo_id", "pr_src_id"]
pr_natural_keys = ["pr_src_id"]
pr_return_columns = ["pull_request_id", "pr_url"]
pr_string_fields = ["pr_src_title", "pr_body"]
pr_return_data = db_session.insert_data(pr_dicts, PullRequest, pr_natural_keys,
Expand Down
Loading