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

default date should be "latest" for querying

parent 8150926c
No related branches found
No related tags found
No related merge requests found
...@@ -19,16 +19,14 @@ use WikiData::Utils; ...@@ -19,16 +19,14 @@ use WikiData::Utils;
use Wiktionary::Utils; use Wiktionary::Utils;
use PDS; use PDS;
my $seq= 'a'; my ($date, $seq);
my $date= '2016-12-05';
my $lang= undef; my $lang= undef;
my ($fnm, $data_dir, $out_dir)= WikiData::Utils::get_paths ($date, $seq);
my $cmp_fnm_pattern= '%s/wdq%05d.cmp'; my $cmp_fnm_pattern= '%s/wdq%05d.cmp';
# my $op_mode= 'find_items'; # my $op_mode= 'find_items';
my $op_mode= 'get_items'; my $op_mode= 'get_items';
my $upd_paths= 0; my $upd_paths= 1;
autoflush STDOUT 1; autoflush STDOUT 1;
...@@ -60,7 +58,17 @@ while (my $arg= shift (@ARGV)) ...@@ -60,7 +58,17 @@ while (my $arg= shift (@ARGV))
else { push (@PARS, $arg); } else { push (@PARS, $arg); }
} }
if (defined ($date))
{
$seq= 'a' unless (defined ($seq));
}
else
{
$date= 'latest';
}
# prepare items list # prepare items list
my ($fnm, $data_dir, $out_dir);
my $fnm_items; my $fnm_items;
if ($upd_paths) if ($upd_paths)
{ {
... ...
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment