From e353043ae5bf5a7df54f650c51f00d6c3b862ba9 Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Mon, 2 Nov 2009 15:56:31 +0000 Subject: [PATCH] Add commodclasses even for un-ordval'd commods --- yarrg/Commods.pm | 2 +- yarrg/db-idempotent-populate | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/yarrg/Commods.pm b/yarrg/Commods.pm index 5161af2..c6ed253 100644 --- a/yarrg/Commods.pm +++ b/yarrg/Commods.pm @@ -37,7 +37,7 @@ BEGIN { @ISA = qw(Exporter); @EXPORT = qw(&parse_info_clientside &fetch_with_rsync &parse_info_serverside &parse_info_serverside_ocean - %oceans %commods %clients + %oceans %commods %clients %commodclasses %vessels %shotname2damage &parse_pctb_commodmap %pctb_commodmap @pctb_commodmap &get_our_version &check_tsv_line diff --git a/yarrg/db-idempotent-populate b/yarrg/db-idempotent-populate index 2e0b0ae..5e0a8d5 100755 --- a/yarrg/db-idempotent-populate +++ b/yarrg/db-idempotent-populate @@ -238,6 +238,8 @@ END if (defined $c->{Ordval} and defined $cl) { $incl{$cl}++; $setinclass->execute($incl{$cl}, $commod); + } elsif (defined $cl) { + $incl{$cl} += 0; } } db_doall(<