Skip to content

Commit

Permalink
ci
Browse files Browse the repository at this point in the history
  • Loading branch information
rromanchuk committed Dec 31, 2023
1 parent 3e96201 commit 9d66063
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 20 deletions.
38 changes: 19 additions & 19 deletions personal/config/sitemap.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,27 +4,27 @@
SitemapGenerator::Sitemap.compress = false
# SitemapGenerator::Sitemap.sitemaps_path = 'sitemaps/'
SitemapGenerator::Sitemap.create(default_host: 'https://romanch.uk', sitemaps_path: 'sitemaps/romanchuk') do
Post.published.find_each do |post|
add(post_path(post), lastmod: post.updated_at, changefreq: :monthly, priority: 0.7)
end
# Post.published.find_each do |post|
# add(post_path(post), lastmod: post.updated_at, changefreq: :monthly, priority: 0.7)
# end

Blob.images.find_each do |blob|
add(serve_image_path(blob.slug), images: [{
loc: blob.key
}], lastmod: blob.updated_at)
end
# Blob.images.find_each do |blob|
# add(serve_image_path(blob.slug), images: [{
# loc: blob.key
# }], lastmod: blob.updated_at)
# end

Blob.videos.find_each do |blob|
add(serve_video_path(blob.slug), video: {
title: blob.title,
description: blob.description,
thumbnail_loc: blob.thumbnail_key,
content_loc: blob.key,
publication_date: blob.created_at.to_s,
live: false,
tags: blob.tag_names
}, lastmod: blob.updated_at)
end
# Blob.videos.find_each do |blob|
# add(serve_video_path(blob.slug), video: {
# title: blob.title,
# description: blob.description,
# thumbnail_loc: blob.thumbnail_key,
# content_loc: blob.key,
# publication_date: blob.created_at.to_s,
# live: false,
# tags: blob.tag_names
# }, lastmod: blob.updated_at)
# end
end

# SitemapGenerator::Sitemap.create(default_host: 'https://romanchukopen.com', sitemaps_path: 'sitemaps/romanchukopen') do
Expand Down
2 changes: 1 addition & 1 deletion personal/db/wx/20231231040823_add_metars_index.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
class AddMetarsIndex < ActiveRecord::Migration[7.1]
disable_ddl_transaction!
def change
add_index :tds_metars, :observation_time, algorithm: :concurrently
#add_index :tds_metars, :observation_time, algorithm: :concurrently
add_index :tds_batches, :processed_at, algorithm: :concurrently
end
end

0 comments on commit 9d66063

Please sign in to comment.