Skip to content

Commit 457c815

Browse files
committed
fix: parametrize the crawl name
1 parent 8adcbb0 commit 457c815

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

duck.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -119,17 +119,17 @@ def main(algo, crawl, local_prefix=None):
119119
else:
120120
raise
121121

122-
sq2 = f'''
122+
sq2 = f"""
123123
select
124124
*
125125
from ccindex
126126
where subset = 'warc'
127-
and crawl = 'CC-MAIN-2024-22'
127+
and crawl = '{crawl}'
128128
and url_host_tld = 'org' -- help the query optimizer
129129
and url_host_registered_domain = 'wikipedia.org' -- ditto
130130
and url = 'https://an.wikipedia.org/wiki/Escopete'
131131
;
132-
'''
132+
"""
133133

134134
row2 = duckdb.sql(sq2)
135135
print('our one row')

0 commit comments

Comments
 (0)