Fixed data appending

This commit is contained in:
MatMasIt 2022-01-31 10:31:08 +01:00 committed by GitHub
parent 15899528c0
commit 4ac0e6fab7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -20,7 +20,7 @@ $nonce = md5($headers["X-Nonce"]);
$intent = $headers["X-Intent"]; $intent = $headers["X-Intent"];
switch($intent){ switch($intent){
case "W": case "W":
file_put_contents("data/".$nonce.".csv",FILE_APPEND); file_put_contents("data/".$nonce.".csv",$f,FILE_APPEND);
break; break;
case "C": case "C":
rename("data/".$nonce.".csv","data/current.csv"); rename("data/".$nonce.".csv","data/current.csv");