Skip to content

Commit

Permalink
Fix edit_glossary_by_name
Browse files Browse the repository at this point in the history
  • Loading branch information
kojix2 committed Jul 16, 2024
1 parent adbe95a commit ea259e2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/deepl/cli.cr
Original file line number Diff line number Diff line change
Expand Up @@ -277,10 +277,10 @@ module DeepL
# FIXME
case glossary_info_list.size
when 2..
creation_times = glossary_info_list.map { |g| g.creation_time }
creation_times = glossary_info_list.map { |g| g.creation_time.to_local.to_s }
prompt = Term::Prompt.new
tm = prompt.select("Select creation date", creation_times)
glossary_info = glossary_info_list.find { |g| g.creation_time == tm }
glossary_info = glossary_info_list.find { |g| g.creation_time.to_local.to_s == tm }
if glossary_info.nil?
STDERR.puts "[deepl-cli] Glossary #{glossary_name} #{tm} is not found"
else
Expand Down

0 comments on commit ea259e2

Please sign in to comment.