| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
| |
|
|
|
|
| |
Instead of using 2 modules we switch everything to Text:ASCIITable.
|
|
|
|
|
|
|
| |
After removing all DateTime code it took ~0.98s to run, before that it
was ~1.2s. And after removing 'use DateTime' it now takes ~0.30s to
run, all of this is without File::Fetch part, it loaded the data from
disk instead of fetching.
|
|
|
|
|
| |
No need to convert it to string for comparision, we instead use == to
compare numbers.
|
|
|
|
|
|
|
|
|
| |
First step to replacing DateTime with Time::Moment, DateTime is very
huge, no need to load that large module for simple tasks, it'll also
make the program run faster.
This comparison happens in utc time instead of converting it to other
time zone which was meaningless anyways.
|
|
|
|
|
| |
'use File::Fetch' gets processed at compile time so we use 'require
File::Fetch' instead.
|
|
|
|
|
|
| |
Text::Table::Tiny wasn't good for state notes because they were long &
had characters like '\n'. Text::ASCIITable has nice options to work
with these.
|
| |
|
|
|
|
|
| |
Instead of checking if( $update_info eq "Today" ) three times, we
check it only once.
|
|
|
|
|
| |
This will fetch the latest data only if the local data is older than 8
minutes or the file doesn't exist.
|
|
|
|
| |
They were swapped for some reason.
|
| |
|
| |
|
|
|
|
|
| |
@statewise thing did some stuff that I didn't understand, instead of
that we directly take data from $json_data.
|
| |
|
| |
|
| |
|
| |
|
|
|
|
| |
subtract/add modifies in place so we clone it.
|
| |
|
|
|
|
|
| |
It now shows "Today", "Yesterday" instead of showing solid dates for
all entries.
|
| |
|
| |
|
|
|
|
|
|
|
| |
This version is much better, it will print all states information
along with delta in some fields like confirmed, deaths, recovered.
I'm not sure though if this is the best way, it just works.
|
|
|