Commit 0b219f68 authored by Joakim Nylén's avatar Joakim Nylén

Bad hotfix

parent 3f2e65ae
......@@ -42,7 +42,7 @@ a.get('') do |h
xml_files.each do |link|
# Download files to the folder
file_name =\.gz$/, ".xml").gsub(/(\d\d)(\d\d)_(\d\d)(\d\d)(\d\d)_xml/, "").gsub(/(\d\d)(\d\d)_xml/, "")
file_name =\.gz$/, ".xml").gsub(/(\d\d)(\d\d)_(\d\d)(\d\d)(\d\d)_xml/, "").gsub(/(\d\d)(\d\d)_xml/, "").gsub("2017", "2018")
# If it exists, check if it differs otherwise just add it already
if File.exist?('/content/skyde/' + file_name)
......@@ -89,7 +89,7 @@ Dir.foreach('/content/skyde') do |item|
week, year = result.captures
if (week.to_i < (cur_week-1)) or (year.to_i < cur_year-1)
FileUtils.rm('/content/skyde/' + item)
#FileUtils.rm('/content/skyde/' + item)
puts "Removed #{item}"
Markdown is supported
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