Skip to content
Snippets Groups Projects
Commit 87fb4f83 authored by Gerhard Gonter's avatar Gerhard Gonter :speech_balloon:
Browse files

default date should be "latest" for querying

parent aec494a0
No related branches found
No related tags found
No related merge requests found
......@@ -10,10 +10,12 @@ use strict;
sub get_paths
{
my $date= shift;
my $seq= shift || 'a';
my $seq= shift;
if ($date =~ m#^(\d{4})-?(\d{2})\-(\d{2})$#)
{
$seq= 'a' unless (defined ($seq));
my ($yr, $mon, $day)= ($1, $2, $3);
my $d1= join ('-', $yr, $mon, $day. $seq);
......@@ -23,6 +25,13 @@ sub get_paths
return ($fnm, $data_dir, $out_dir);
}
elsif ($date eq 'latest')
{
my $data_dir= join ('/', 'data', 'latest');
my $out_dir= join ('/', 'data', 'latest', 'out');
return (undef, $data_dir, $out_dir);
}
die "invalid date format";
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment