Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| c9bd5207b0 |
+3
-1
@@ -18,9 +18,11 @@ defmodule Jump.CLI do
|
|||||||
|
|
||||||
now = DateTime.utc_now()
|
now = DateTime.utc_now()
|
||||||
the_end = format.(now)
|
the_end = format.(now)
|
||||||
|
{the_end_int, ""} = Integer.parse(the_end)
|
||||||
|
|
||||||
start = now |> DateTime.add(-4, :day) |> format.()
|
start = now |> DateTime.add(-4, :day) |> format.()
|
||||||
|
|
||||||
Jump.fetch(args[:article], start, the_end)
|
Jump.fetch(args[:article], start, the_end_int)
|
||||||
end
|
end
|
||||||
|
|
||||||
defp calculate(items, args) do
|
defp calculate(items, args) do
|
||||||
|
|||||||
Reference in New Issue
Block a user