Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

a slower entering of words #18

Merged
merged 1 commit into from
Mar 29, 2014
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 18 additions & 2 deletions bin/upload
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ if ($use_definitions) {

# Process a valsi.
print "$valsi: " unless $quiet;

sleep 60;
# Check is the valsi already in the dictionary.
my $currurl = "$url/dict/$valsi";
my $langid;
Expand Down Expand Up @@ -370,7 +370,7 @@ if ($use_definitions) {

unless ($quiet) {
print "\n---\n";
print "$defsubms of $defs definitions sumbitted\n";
print "$defsubms of $defs definitions submitted\n";
print "Valsi checks failed: $valsierrs\n";
print "Definition checks failed: $deferrs\n";
print "Malformed entries: $malforms\n";
Expand Down Expand Up @@ -571,3 +571,19 @@ sub getplaceparams {

return %params;
}

sub getplaceparamsold {
my $tags = shift;
my %params = ();
if ($tags->{'place'}) {
my $i = 1;
foreach my $place (@{$tags->{'place'}}) {
$params{"placew$i"} = $place->[0];
$params{"placem$i"} = $place->[1];
$i++;
}
$params{"placemax"} = $i - 1;
}

return %params;
}