Skip to content

Commit

Permalink
Merge pull request #17 from TheHalcyonSavant/TheHalcyonSavant-patch-i16
Browse files Browse the repository at this point in the history
#16 fix
  • Loading branch information
xFFFFF committed May 7, 2018
2 parents b9071cd + 09bde31 commit 3b684a1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backtest.pl
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ sub convert {
# print $data;
my $coder = JSON::XS->new->ascii->pretty->allow_nonref;
$json = $coder->encode ($data);
$json =~ s/^{/config.$stratname = {\n/;
$json =~ s/^{/config['$stratname'] = {\n/;
return $json;
}
sub convert_json_toml {
Expand Down

0 comments on commit 3b684a1

Please sign in to comment.