Skip to content
This repository has been archived by the owner on Feb 14, 2024. It is now read-only.

Commit

Permalink
Remove unused functionality from get_orgs
Browse files Browse the repository at this point in the history
get_orgs always requires a connection so we should revert this change
  • Loading branch information
DJensen94 committed Oct 27, 2022
1 parent 2650c0b commit 6570646
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/pe_reports/data/db_query.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,8 @@ def close(conn):
return


def get_orgs(conn=None):
def get_orgs(conn):
"""Query organizations table for orgs we report on."""
if not conn:
conn = connect()
try:
cur = conn.cursor()
sql = """SELECT * FROM organizations WHERE report_on"""
Expand Down

0 comments on commit 6570646

Please sign in to comment.