From e0d55e82f20e5dd575691167e614b3d31d1bc0f6 Mon Sep 17 00:00:00 2001 From: Wataru Otsubo Date: Fri, 4 Oct 2024 20:08:29 +0900 Subject: [PATCH] fix: style of prints for copy and paste at the last of interactive_dispatch_checker - format is PS000xxx, not xxx --- src/dispatch_checker.jl | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/dispatch_checker.jl b/src/dispatch_checker.jl index 3d4c848..30609c9 100644 --- a/src/dispatch_checker.jl +++ b/src/dispatch_checker.jl @@ -165,9 +165,13 @@ function interactive_dispatch_checker(conn::DbConnection) end printstyled("Finished\n") - join(dispatch_list, "\n") |> print + + map(dispatch_list) do psbid + @sprintf "PS%06d" psbid + end |> (v -> join(v, "\n")) |> print println() - printstyled("Paste the result\n", underline = true) + + printstyled("Paste the result to google sheets\n", underline = true) @info "Tips: You can use `join(ans, \"\\n\") |> clipboard` in REPL to copy the result to the clipboard" return dispatch_list