Skip to content

Commit

Permalink
Merge pull request #2973 from chaoss/fix-syntax-error
Browse files Browse the repository at this point in the history
Fix sql synax error
  • Loading branch information
sgoggins authored Jan 21, 2025
2 parents 6cd0ddb + 34994f0 commit a7d11e1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions augur/tasks/github/messages.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,9 +93,9 @@ def process_large_issue_and_pr_message_collection(repo_id, repo_git: str, logger

if since:
query = text(f"""
(select pr_comments_url from pull_requests WHERE repo_id={repo_id} AND pr_updated_at > {since} order by pr_created_at desc)
(select pr_comments_url from pull_requests WHERE repo_id={repo_id} AND pr_updated_at > timestamptz(timestamp '{since}') order by pr_created_at desc)
UNION
(select comments_url as comment_url from issues WHERE repo_id={repo_id} AND updated_at > {since} order by created_at desc);
(select comments_url as comment_url from issues WHERE repo_id={repo_id} AND updated_at > timestamptz(timestamp '{since}') order by created_at desc);
""")
else:

Expand Down

0 comments on commit a7d11e1

Please sign in to comment.