]> git.donarmstrong.com Git - infobot.git/commitdiff
* in factpact.pl import script needs to be lower case, or queries against the pack...
authordjmcgrath <djmcgrath@c11ca15a-4712-0410-83d8-924469b57eb5>
Sun, 25 Jan 2009 03:02:00 +0000 (03:02 +0000)
committerdjmcgrath <djmcgrath@c11ca15a-4712-0410-83d8-924469b57eb5>
Sun, 25 Jan 2009 03:02:00 +0000 (03:02 +0000)
git-svn-id: https://svn.code.sf.net/p/infobot/code/trunk@1861 c11ca15a-4712-0410-83d8-924469b57eb5

scripts/factpack.pl

index 6bb60d9fed82562d15b51979becef8756a56a9f1..c9f3151c38556ce5c79c56fec4f5b8c56476c0db 100755 (executable)
@@ -69,6 +69,9 @@ foreach (@ARGV) {
         $key =~ s/\t/ /g;
         $value =~ s/\t/ /g;
 
+        # The key needs to be lower case to match query case
+        $key = lc $key;
+
         ### TODO: check if it already exists. if so, don't add.
         ### TODO: combine 2 setFactInfo's into single
         &setFactInfo( $key, "factoid_value", $value );