Insert scheduled downtime infos from cloud calendar
Change-Id: I8e4524126c08c4b89298e29b4c17588ef3997b71
diff --git a/script/derekovecs-server b/script/derekovecs-server
index 16fed71..7525b0d 100755
--- a/script/derekovecs-server
+++ b/script/derekovecs-server
@@ -23,6 +23,8 @@
}
my $DEFAULT_NET = app->config->{w2v}->{net} // $DEFAULT_NET_NAME;
+my $DEFAULT_NET = app->config->{w2v}->{net} // $DEFAULT_NET_NAME;
+my $DOWNTIME_CALENDAR_URL = app->config->{downtime_calendar_url} // '';
app->static->paths->[0] = getcwd;
plugin 'Piwik';
@@ -343,7 +345,28 @@
if(!defined($word) || $word !~ /^\s*$/) {
$distantWords = getBiggestMergedDifferences();
}
- $c->render(template=>"index", title=>$title, word=>$word, distantWords=>$distantWords, cutoff=>$cutoff, no_nbs=>$no_nbs, no_iterations => $no_iterations, epsilon=> $epsilon, perplexity=> $perplexity, show_som=>$som, searchBaseVocabFirst=>$searchBaseVocabFirst, sort=>$sort, training_args=>$training_args, mergedEnd=> $mergedEnd, haveSProfiles=> $have_sprofiles, dedupe=> $dedupe, marked=>\%marked, lists=> \@lists, collocators=> $res->{syntagmatic});
+ $c->render(
+ template => "index",
+ title => $title,
+ word => $word,
+ distantWords => $distantWords,
+ cutoff => $cutoff,
+ no_nbs => $no_nbs,
+ no_iterations => $no_iterations,
+ epsilon => $epsilon,
+ perplexity => $perplexity,
+ show_som => $som,
+ searchBaseVocabFirst => $searchBaseVocabFirst,
+ sort => $sort,
+ training_args => $training_args,
+ mergedEnd => $mergedEnd,
+ haveSProfiles => $have_sprofiles,
+ dedupe => $dedupe,
+ marked => \%marked,
+ lists => \@lists,
+ collocators => $res->{syntagmatic},
+ downtime_calendar_url => $DOWNTIME_CALENDAR_URL
+ );
}
} => "paradigmaticAndSyntagmaticNbs";