Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

#641 Blip_api: add tabbing and change to fetchall #642

Merged
merged 1 commit into from
Jul 4, 2023
Merged
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
4 changes: 2 additions & 2 deletions bluetooth/api/blip_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -318,7 +318,7 @@ def main(dbsetting: 'path/to/config.cfg' = None,
with conn:
with conn.cursor() as cur:
cur.execute("SELECT analysis_id, report_name from king_pilot.bt_segments INNER JOIN bluetooth.all_analyses USING(analysis_id)")
routes_to_pull = {analysis_id: dict(report_name = report_name) for analysis_id, report_name in cur.fetchone()}
routes_to_pull = {analysis_id: dict(report_name = report_name) for analysis_id, report_name in cur.fetchone()}

else:
#Querying data that's been further processed overnight
Expand All @@ -336,7 +336,7 @@ def main(dbsetting: 'path/to/config.cfg' = None,
with conn:
with conn.cursor() as cur:
cur.execute(sql, {'analysis':analysis})
routes_to_pull = {analysis_id: dict(report_name = report_name) for analysis_id, report_name in cur.fetchone()}
routes_to_pull = {analysis_id: dict(report_name = report_name) for analysis_id, report_name in cur.fetchall()}

date_to_process = None

Expand Down