From 422987de1ec6d03043be9c6e3677a76ff43f7da4 Mon Sep 17 00:00:00 2001 From: Helena Rasche Date: Wed, 5 Jun 2024 17:39:57 +0200 Subject: [PATCH] another --- bin/filter-pyolite-safe | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bin/filter-pyolite-safe b/bin/filter-pyolite-safe index da0c4cb92c1e13..710a88bca0b780 100755 --- a/bin/filter-pyolite-safe +++ b/bin/filter-pyolite-safe @@ -1,12 +1,13 @@ #!/usr/bin/env ruby # frozen_string_literal: true +require './_plugins/util' require 'yaml' require 'find' Find.find('topics/').each do |fn| if File.basename(fn) == 'tutorial.md' - data = YAML.load_file(fn) + data = safe_load_yaml(fn) if data.key?('notebook') && (data['notebook'].key? 'pyolite') parts = fn.split('/') puts "_site/training-material/#{parts[0..-2].join('/')}/#{parts[1]}-#{parts[3]}.ipynb"