Fix raw dump filename

This commit is contained in:
Sven Seeberg 2020-10-29 18:57:56 +01:00
parent 5d731b0693
commit e8da1332d2
Signed by: sven.seeberg
GPG key ID: 29559DD5A83806B5

View file

@ -90,7 +90,7 @@ function export_result($cfg) {
$sha256 = create_text_file($cfg, $body);
if ( strlen($cfg["export"]["rawpath"])>0) {
file_put_contents(
$cfg["export"]["rawpath"] . "/" . $body->event_token . "" . $body->vote_round .".json",
$cfg["export"]["rawpath"] . "/" . $body->event_token . "-" . $body->vote_round .".json",
json_encode($body));
}
return ["success" => true, "sha256" => $sha256, "signing_key" => $cfg["export"]["pgpkey"]];