Skip to content

Commit adaae69

Browse files
committed
flake checks
1 parent dabfa4d commit adaae69

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

src/db.py

+5-5
Original file line numberDiff line numberDiff line change
@@ -109,15 +109,15 @@ def get_specification(params: SpecificationsParams):
109109
)
110110

111111
sql_count = f"""
112-
SELECT COUNT(*) FROM (SELECT unnest(CAST(json AS VARCHAR[])) AS value FROM '{s3_uri}')
113-
as parsed_json {where_clause} {pagination}
112+
SELECT COUNT(*) FROM (SELECT unnest(CAST(json AS VARCHAR[])) AS value
113+
FROM '{s3_uri}') as parsed_json {where_clause} {pagination}
114114
"""
115115
logger.debug(sql_count)
116116
sql_results = f"""
117117
SELECT value as json FROM
118-
(SELECT unnest(CAST(json AS VARCHAR[])) AS value FROM '{s3_uri}')
119-
as parsed_json {where_clause} {pagination}
120-
"""
118+
(SELECT unnest(CAST(json AS VARCHAR[])) AS value FROM '{s3_uri}') AS parsed_json
119+
{where_clause} {pagination}
120+
"""
121121
logger.debug(sql_results)
122122

123123
with duckdb.connect() as conn:

tests/integration/test_main.py

+1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
from fastapi.testclient import TestClient
22
from main import app
3+
import json
34

45
# Create a test client for the FastAPI app
56
client = TestClient(app)

0 commit comments

Comments
 (0)