]> git.sesse.net Git - remoteglot/commitdiff
Do not send the prettyprint cache in the JSON; it only wastes space.
authorSteinar H. Gunderson <sgunderson@bigfoot.com>
Sun, 9 Nov 2014 18:09:37 +0000 (19:09 +0100)
committerSteinar H. Gunderson <sgunderson@bigfoot.com>
Sun, 9 Nov 2014 18:09:37 +0000 (19:09 +0100)
Position.pm

index 1a02d61d86f28626aff845546b79ddbde6e487c5..6b772a67b82fafe4bcffb5b44a09849a8fb49eeb 100644 (file)
@@ -112,7 +112,7 @@ sub fen {
 
 sub to_json_hash {
        my $pos = shift;
-       my $json = { %$pos, board => undef, fen => $pos->fen() };
+       my $json = { %$pos, board => undef, prettyprint_cache => undef, fen => $pos->fen() };
        if ($json->{'player_w'} =~ /^base64:(.*)$/) {
                $json->{'player_w'} = MIME::Base64::decode_base64($1);
        }