Skip to content

Commit

Permalink
Save a bit more memory
Browse files Browse the repository at this point in the history
  • Loading branch information
nigelhorne committed Oct 9, 2019
1 parent 58804ca commit 454c9af
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ged2site
Original file line number Diff line number Diff line change
Expand Up @@ -1229,7 +1229,7 @@ if(open(my $fout, '>', 'static-site/history.html')) {
open(my $csv, '>', 'dynamic-site/databases/history.csv');
print $csv "entry!year!month!day!person!title!event\n";
my $index = 1;
foreach my $e(@sorted_events) {
while(my $e = unshift(@sorted_events)) {
$e = $all_events{$e};
my $date = $e->{'date'};
if(!(defined($year)) || ($date->year() != $year)) {
Expand Down

0 comments on commit 454c9af

Please sign in to comment.