Skip to content

Commit d9cc01f

Browse files
committed
flake check
1 parent 4ec3ab8 commit d9cc01f

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

src/db.py

+4-7
Original file line numberDiff line numberDiff line change
@@ -117,18 +117,15 @@ def get_specification(params: SpecificationsParams):
117117

118118
sql_count = f"""
119119
SELECT COUNT(*) FROM (
120-
SELECT unnest(CAST(json AS VARCHAR[])) AS value
121-
FROM '{s3_uri}'
122-
) AS parsed_json {where_clause}
120+
SELECT unnest(CAST(json AS VARCHAR[])) AS value
121+
FROM '{s3_uri}') AS parsed_json {where_clause}
123122
LIMIT ? OFFSET ?
124123
"""
125124

126125
sql_results = f"""
127126
SELECT value AS json FROM (
128-
SELECT unnest(CAST(json AS VARCHAR[])) AS value
129-
FROM '{s3_uri}'
130-
) AS parsed_json
131-
{where_clause}
127+
SELECT unnest(CAST(json AS VARCHAR[])) AS value
128+
FROM '{s3_uri}') AS parsed_json {where_clause}
132129
LIMIT ? OFFSET ?
133130
"""
134131

0 commit comments

Comments
 (0)