Commit 11ba8bb2 authored by Bmansurov's avatar Bmansurov
Browse files

Set languages to 'all' when no project is supplied

parent cf907e3f
Pipeline #6093 passed with stages
in 5 minutes and 22 seconds
......@@ -68,7 +68,8 @@ def _generate_data(spark, mediawiki_snapshot, wikidata_snapshot,
wikitext_table = 'wmf.mediawiki_wikitext_history'
item_page_link_table = 'wmf.wikidata_item_page_link'
languages = '_'.join([x.rstrip('wiki') for x in projects])
languages = '_'.join([x.rstrip('wiki') for x in projects]) \
if projects else 'all'
features_table = f'{start_date.strftime("%Y%m%d")}_{end_date.strftime("%Y%m%d")}_{languages}_features'
features_file = f'{save_directory}/{features_table}.parquet' if save_directory else None
scores_table = f'{start_date.strftime("%Y%m%d")}_{end_date.strftime("%Y%m%d")}_{languages}_scores'
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment