Compare commits

..

1 Commits

Author SHA1 Message Date
thread da0b553f64 Update README.md
followup PR readme note
2026-04-15 21:12:57 -04:00
2 changed files with 7 additions and 13 deletions
+2
View File
@@ -17,3 +17,5 @@ Generated escript jump with MIX_ENV=dev
}
done.
```
Note: I noticed a couple things after my rush to submit: https://git.impulsedetroit.net/thread/jump/pulls/2
+5 -13
View File
@@ -14,15 +14,12 @@ defmodule Jump.CLI do
end
defp fetch(args) do
format = &Calendar.strftime(&1, "%Y%m%d")
now = DateTime.utc_now()
the_end = format.(now)
the_end = Calendar.strftime(DateTime.utc_now(), "%Y%m%d")
{the_end_int, ""} = Integer.parse(the_end)
start = now |> DateTime.add(-4, :day) |> format.()
start = the_end_int - args[:days]
Jump.fetch(args[:article], start, the_end_int)
Jump.fetch(args[:article], start, the_end)
end
defp calculate(items, args) do
@@ -43,16 +40,11 @@ defmodule Jump.CLI do
end
defp finish(summary) do
%{status: status, body: %{"data" => data}} = Jump.post(summary)
Jump.post(summary)
IO.puts("Summary:")
IO.inspect(summary)
IO.puts("""
\nPost Response (Status #{status}):
#{inspect(data)}
""")
IO.puts("done.")
end
end