From 09787be6478d02a8b54d75db85f464182dd44273 Mon Sep 17 00:00:00 2001 From: "St.Huang" Date: Wed, 15 Aug 2018 17:29:43 +0800 Subject: [PATCH] fix #30 --- addons/fastwq/service/base.py | 4 ++-- addons21/fastwq/service/base.py | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/addons/fastwq/service/base.py b/addons/fastwq/service/base.py index b3867ab..012189b 100644 --- a/addons/fastwq/service/base.py +++ b/addons/fastwq/service/base.py @@ -621,7 +621,7 @@ class MdxService(LocalService): ''' if not self.cache[self.word]: html = '' - result = self.builder.mdx_lookup(self.word) # self.word: unicode + result = self.builder.mdx_lookup(self.word, ignorecase=True) # self.word: unicode if result: if result[0].upper().find(u"@@@LINK=") > -1: # redirect to a new word behind the equal symol. @@ -689,7 +689,7 @@ class MdxService(LocalService): shutil.copy(src_fn, savepath) return savepath else: - bytes_list = self.builder.mdd_lookup(filepath_in_mdx) + bytes_list = self.builder.mdd_lookup(filepath_in_mdx, ignorecase=True) if bytes_list: with open(savepath, 'wb') as f: f.write(bytes_list[0]) diff --git a/addons21/fastwq/service/base.py b/addons21/fastwq/service/base.py index 0c2c94d..27210bf 100644 --- a/addons21/fastwq/service/base.py +++ b/addons21/fastwq/service/base.py @@ -627,7 +627,7 @@ class MdxService(LocalService): ''' if not self.cache[self.word]: html = '' - result = self.builder.mdx_lookup(self.word) # self.word: unicode + result = self.builder.mdx_lookup(self.word, ignorecase=True) # self.word: unicode if result: if result[0].upper().find(u"@@@LINK=") > -1: # redirect to a new word behind the equal symol. @@ -695,7 +695,7 @@ class MdxService(LocalService): shutil.copy(src_fn, savepath) return savepath else: - bytes_list = self.builder.mdd_lookup(filepath_in_mdx) + bytes_list = self.builder.mdd_lookup(filepath_in_mdx, ignorecase=True) if bytes_list: with open(savepath, 'wb') as f: f.write(bytes_list[0])