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

Bug when specifying analysis ids #641

Closed
radumas opened this issue Jun 19, 2023 · 1 comment · Fixed by #642
Closed

Bug when specifying analysis ids #641

radumas opened this issue Jun 19, 2023 · 1 comment · Fixed by #642
Assignees

Comments

@radumas
Copy link
Member

radumas commented Jun 19, 2023

2023-06-16 14:41:49,826 __main__ INFO Pulling data from 20230601 to 20230615
2023-06-16 14:41:49,826 __main__ INFO Fetching config from blip server
2023-06-16 14:41:50,217 __main__ INFO Fetching info on the following analyses from the database: [1514906, 1515280, 1514986, 1514879, 1514850, 1515251]
2023-06-16 14:41:50,278 __main__ CRITICAL Traceback (most recent call last):
  File "C:\Users\Data_Analytics\blip_api\blip_api.py", line 448, in <module>
    main(**vars(ARGS))
  File "C:\Users\Data_Analytics\blip_api\blip_api.py", line 339, in main
    routes_to_pull = {analysis_id: dict(report_name = report_name) for analysis_id, report_name in cur.fetchone()}
psycopg2.InterfaceError: cursor already closed

The following line needs to be tabbed over

routes_to_pull = {analysis_id: dict(report_name = report_name) for analysis_id, report_name in cur.fetchone()}

@chmnata
Copy link
Collaborator

chmnata commented Jun 19, 2023

ran into this after tabbing

2023-06-19 18:39:06,492 __main__ CRITICAL Traceback (most recent call last):
  File "C:\Users\Data_Analytics\blip_api\blip_api.py", line 448, in <module>
    main(**vars(ARGS))
  File "C:\Users\Data_Analytics\blip_api\blip_api.py", line 339, in main
    routes_to_pull = {analysis_id: dict(report_name = report_name) for analysis_id, report_name in cur.fetchone()}
  File "C:\Users\Data_Analytics\blip_api\blip_api.py", line 339, in <dictcomp>
    routes_to_pull = {analysis_id: dict(report_name = report_name) for analysis_id, report_name in cur.fetchone()}
TypeError: cannot unpack non-iterable int object

chmnata added a commit that referenced this issue Jun 19, 2023
@radumas radumas linked a pull request Jun 21, 2023 that will close this issue
radumas added a commit that referenced this issue Jul 4, 2023
#641 Blip_api: add tabbing and change to fetchall
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants