Align on =

I'm just playing with the hx editor and its & command.
This commit is contained in:
gg 2023-07-28 13:51:50 -07:00
parent 958c4da8e8
commit d3e05dd942
1 changed files with 9 additions and 8 deletions

View File

@ -5,13 +5,13 @@ using JSON3, HTTP, Dates, TimeZones, DataStructures
SCHEDULE_URL = "https://smtgvs.weathernews.jp/a/solive_timetable/timetable.json"
TITLES = Dict(
"ウェザーニュースLiVE・モーニング" => "Morning",
"ウェザーニュースLiVE・サンシャイン" => "Sunshine",
"ウェザーニュースLiVE・モーニング" => "Morning",
"ウェザーニュースLiVE・サンシャイン" => "Sunshine",
"ウェザーニュースLiVE・コーヒータイム" => "Coffee Time",
"ウェザーニュースLiVE・アフタヌーン" => "Afternoon",
"ウェザーニュースLiVE・イブニング" => "Evening",
"ウェザーニュースLiVE・ムーン " => "Moon",
"ウェザーニュースLiVE" => "_",
"ウェザーニュースLiVE・アフタヌーン" => "Afternoon",
"ウェザーニュースLiVE・イブニング" => "Evening",
"ウェザーニュースLiVE・ムーン " => "Moon",
"ウェザーニュースLiVE" => "_",
)
function dl(url)
@ -54,8 +54,9 @@ function massage_fn(zone, leading_zero)
zero_adjustment += 1
end
hms = (map(i -> replace(i, r"^0" => "") |> n -> parse(Int64, n), split(item[:hour], ":"))..., 0)
t = ZonedDateTime(ymd..., hms..., tz"Asia/Tokyo")
n = DataStructures.OrderedDict{Symbol,Any}()
t = ZonedDateTime(ymd..., hms..., tz"Asia/Tokyo")
n = DataStructures.OrderedDict{Symbol,Any}()
n[:caster] = item[:caster]
n[:title] = TITLES[item[:title]]
n[:t] = t