[Seeding] Always enable mascots (#826)

This commit is contained in:
Cinder 2024-12-18 07:21:05 -08:00 committed by GitHub
parent b44f8a7d6f
commit ba18a9d7b5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -38,7 +38,7 @@ def api_request(path)
end
def import_mascots
api_request("/mascots.json?limit=1").each do |mascot|
api_request("/mascots.json?limit=3").each do |mascot|
puts mascot["url_path"]
Mascot.create!(
creator: CurrentUser.user,
@ -48,7 +48,7 @@ def import_mascots
artist_url: mascot["artist_url"],
artist_name: mascot["artist_name"],
available_on_string: Danbooru.config.app_name,
active: mascot["active"],
active: true,
)
end
end