mirror of
https://github.com/wezm/wezm.net.git
synced 2024-11-10 01:42:32 +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
|
||||
categories.uniq!
|
||||
|
||||
if categories.empty?
|
||||
categories << 'Uncategorized'
|
||||
end
|
||||
|
||||
begin
|
||||
post_date = Date.strptime(get(post, 'wp:post_date_gmt'), "%Y-%m-%d %H:%M:%S")
|
||||
rescue ArgumentError
|
||||
|
|
Loading…
Reference in a new issue