Save new fave and tesseract
authorCameron Ball <cameron@moodle.com>
Fri, 3 May 2019 03:06:35 +0000 (11:06 +0800)
committerCameron Ball <cameron@moodle.com>
Fri, 3 May 2019 03:06:35 +0000 (11:06 +0800)
src/prankdigest.php

index 5b77649..dc9d0bd 100644 (file)
@@ -36,7 +36,6 @@ $scoreTesseract = map(map(map(maxKey)))(
 
 $diff = array_diff_assoc_recursive($scoreTesseract, $oldScoreTesseract);
 $asdf = prefixKey('', $diff);
-print_r($asdf);
 $pranks = [];
 foreach ($asdf as $k => $v) {
     $k = explode('.', $k);
@@ -87,3 +86,6 @@ if ($pranks || $newFaves) {
         ]
     );
 }
+
+file_put_contents(__DIR__ . '/tesseract.txt', serialize($scoreTesseract));
+file_put_contents(__DIR__ . '/faves.txt', serialize($faveMap));