diff scan.pl @ 7:2040ccc95670

implemented scores collection.
author "Rex Tsai <chihchun@kalug.linux.org.tw>"
date Wed, 08 Oct 2008 02:50:19 +0800
parents dbb97c4265ba
children e4b3168d0319
line wrap: on
line diff
--- a/scan.pl	Wed Oct 08 01:52:18 2008 +0800
+++ b/scan.pl	Wed Oct 08 02:50:19 2008 +0800
@@ -17,12 +17,12 @@
 foreach my $island (@islands)
 {
     printf("checking island %d\n", $island->{id});
-    if(my $c = Ikariam::Islands->retrieve($island->{id})) {
+    if(my $c = Ikariam::Island->retrieve($island->{id})) {
         foreach my $i (keys(%$island)) {
             eval($c->$i($island->{$i}));
         }
     } else {
-        Ikariam::Islands->insert($island);
+        Ikariam::Island->insert($island);
     }
 
     # scanning the island