diff --git a/hooks/subjects.pl b/hooks/subjects.pl index 972f72a..bd3cd6c 100755 --- a/hooks/subjects.pl +++ b/hooks/subjects.pl @@ -139,7 +139,7 @@ sub tag_project # Send data to intradata log INFO, "Attente d'un processus de publication..."; log ERROR, "Erreur durant le processus de publication : $_" - if (!Process::Client::launch("intradata_get", { action => "update", type => "project", id => $project_id, "year" => $year }, { "butler.xml" => $content })); + if (Process::Client::launch("intradata_get", { action => "update", type => "project", id => $project_id, "year" => $year }, { "butler.xml" => $content })); # Call API my $err = API::Projects::add($project_id, $year); diff --git a/process/files/intradata_get.pl b/process/files/intradata_get.pl index 4263340..9c3e8ce 100644 --- a/process/files/intradata_get.pl +++ b/process/files/intradata_get.pl @@ -62,7 +62,7 @@ sub update_project log INFO, "Update $year/$project_id/butler.xml"; - return $_ if (! create_tree($year, $project_id)); + return $_ if (create_tree($year, $project_id)); open my $out, ">", "$basedir/$year/$project_id/butler.xml"; print $out $butler;