summaryrefslogtreecommitdiff
path: root/utils/rhrd-schedules
diff options
context:
space:
mode:
authorChristian Pointner <equinox@spreadspace.org>2016-05-10 20:58:53 (GMT)
committerChristian Pointner <equinox@spreadspace.org>2016-05-10 20:58:53 (GMT)
commit47d2fa25c11d5b99d8f2f5dde01b78b151374799 (patch)
tree6b9b43d59d729f6f95f5b687384b693f0512441c /utils/rhrd-schedules
parent85d9a451c7d11d3d93252570bf9d9dfb638f55bc (diff)
reduce by one redirect
Diffstat (limited to 'utils/rhrd-schedules')
-rwxr-xr-xutils/rhrd-schedules6
1 files changed, 3 insertions, 3 deletions
diff --git a/utils/rhrd-schedules b/utils/rhrd-schedules
index 7cc3194..123302c 100755
--- a/utils/rhrd-schedules
+++ b/utils/rhrd-schedules
@@ -37,7 +37,7 @@ sub generate
{
my ($ctx, $year, $month, $day) = @_;
- my ($ret, $data) = RHRD::utils::fetch_parse_json("https://pv.helsinki.at/export/day_schedule/$year/$month/$day", "rhrd-schedules");
+ my ($ret, $data) = RHRD::utils::fetch_parse_json("https://pv.helsinki.at/export/day_schedule/$year/$month/$day/", "rhrd-schedules");
if(!$ret) {
print STDERR "Error fetching export from PV: $data\n";
return 1;
@@ -92,9 +92,9 @@ sub show__day
{
my ($ctx, $year, $month, $day) = @_;
- print "https://pv.helsinki.at/export/day_schedule/$year/$month/$day\n";
+ print "https://pv.helsinki.at/export/day_schedule/$year/$month/$day/\n";
- my ($ret, $data) = RHRD::utils::fetch_parse_json("https://pv.helsinki.at/export/day_schedule/$year/$month/$day", "rhrd-schedules");
+ my ($ret, $data) = RHRD::utils::fetch_parse_json("https://pv.helsinki.at/export/day_schedule/$year/$month/$day/", "rhrd-schedules");
if(!$ret) {
print STDERR "Error fetching export from PV: $data\n";
return 1;