mirror of
https://github.com/nishiki/manage-password.git
synced 2025-03-19 21:04:35 +00:00
minor fix id
This commit is contained in:
parent
2ffaa5114b
commit
cc339bbe98
1 changed files with 10 additions and 10 deletions
|
@ -110,16 +110,16 @@ class MPW
|
||||||
@data.each do |item|
|
@data.each do |item|
|
||||||
next if item.empty?
|
next if item.empty?
|
||||||
|
|
||||||
data.merge!("#{item.user}@#{item.host}" => {'id' => item.id,
|
data.merge!(item.id => { 'id' => item.id,
|
||||||
'group' => item.group,
|
'group' => item.group,
|
||||||
'host' => item.host,
|
'host' => item.host,
|
||||||
'protocol' => item.protocol,
|
'protocol' => item.protocol,
|
||||||
'user' => item.user,
|
'user' => item.user,
|
||||||
'port' => item.port,
|
'port' => item.port,
|
||||||
'comment' => item.comment,
|
'comment' => item.comment,
|
||||||
'last_edit' => item.last_edit,
|
'last_edit' => item.last_edit,
|
||||||
'created' => item.created,
|
'created' => item.created,
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue