@@ -318,7 +318,7 @@ def fetch_europeana_data_without_themes(session, limit=None):
318318 LOGGER .warning (
319319 f"Failed for provider={ provider } , rights={ rights } : { e } "
320320 )
321- time .sleep (0.2 )
321+ time .sleep (0.01 )
322322 LOGGER .info (f"Aggregated { len (output )} records (without themes)." )
323323 return output
324324
@@ -393,7 +393,7 @@ def fetch_europeana_data_with_themes(session, themes, limit=None):
393393 f"theme={ theme } : "
394394 f"{ e } "
395395 )
396- time .sleep (0.5 )
396+ time .sleep (0.01 )
397397 LOGGER .info (f"Aggregated { len (output )} records (with themes)." )
398398 return output
399399
@@ -443,6 +443,11 @@ def main():
443443 )
444444
445445 session = get_requests_session ()
446+
447+ providers_full = get_facet_list (session , "DATA_PROVIDER" )
448+ rights_full = get_facet_list (session , "RIGHTS" )
449+ LOGGER .info (f"Facet providers loaded: { len (providers_full )} " )
450+ LOGGER .info (f"Facet rights loaded: { len (rights_full )} " )
446451 data_no_theme = fetch_europeana_data_without_themes (
447452 session , limit = args .limit
448453 )
@@ -451,15 +456,13 @@ def main():
451456 )
452457
453458 args = write_data (args , data_no_theme , data_with_theme )
454-
455- if args .enable_git :
456- args = shared .git_add_and_commit (
457- args ,
458- PATHS ["repo" ],
459- PATHS ["data_quarter" ],
460- f"Add Europeana files (with and without themes) for { QUARTER } " ,
461- )
462- shared .git_push_changes (args , PATHS ["repo" ])
459+ args = shared .git_add_and_commit (
460+ args ,
461+ PATHS ["repo" ],
462+ PATHS ["data_quarter" ],
463+ f"Add Europeana files (with and without themes) for { QUARTER } " ,
464+ )
465+ shared .git_push_changes (args , PATHS ["repo" ])
463466
464467 LOGGER .info ("Europeana fetch completed successfully." )
465468
0 commit comments