mirror of
https://github.com/wezm/wezm.net.git
synced 2024-12-19 02:39:54 +00:00
Import content without a category into Uncategorized
This commit is contained in:
parent
b44a648002
commit
5fcc8d4390
1 changed files with 4 additions and 0 deletions
|
@ -93,6 +93,10 @@ module Importer
|
||||||
end
|
end
|
||||||
categories.uniq!
|
categories.uniq!
|
||||||
|
|
||||||
|
if categories.empty?
|
||||||
|
categories << 'Uncategorized'
|
||||||
|
end
|
||||||
|
|
||||||
begin
|
begin
|
||||||
post_date = Date.strptime(get(post, 'wp:post_date_gmt'), "%Y-%m-%d %H:%M:%S")
|
post_date = Date.strptime(get(post, 'wp:post_date_gmt'), "%Y-%m-%d %H:%M:%S")
|
||||||
rescue ArgumentError
|
rescue ArgumentError
|
||||||
|
|
Loading…
Reference in a new issue