将属性图流程同步至主流程中
This commit is contained in:
@@ -12,7 +12,7 @@ class MarkDown:
|
||||
colComments:list = []
|
||||
ignores:List[str] = []
|
||||
for name,fld in flds.items():
|
||||
if name =='_id' or name =='nodeType' or name =='relTbId':
|
||||
if self._table.name() == '工程属性' and (name =='_id' or name =='nodeType' or name =='relTbId'):
|
||||
ignores.append(name)
|
||||
continue
|
||||
|
||||
@@ -26,7 +26,9 @@ class MarkDown:
|
||||
if col in ignores:
|
||||
continue
|
||||
txt:str = record.value(col)
|
||||
datas.append(txt.replace('\n'," "))
|
||||
content = txt.replace('\n',"")
|
||||
content = content.replace('\r',"")
|
||||
datas.append(content)
|
||||
rowdatas.append(datas)
|
||||
|
||||
content = self.convert(self._table.name(),self._table.comment(),columns,colComments,rowdatas)
|
||||
@@ -57,8 +59,8 @@ class MarkDown:
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
intputDir = ''
|
||||
outputDir = ''
|
||||
intputDir = 'C:\\Users\\wanyaokun\\Desktop\\markdown\\Project'
|
||||
outputDir = 'C:\\Users\\wanyaokun\\Desktop\\markdown\\data'
|
||||
|
||||
subdirectories = {}
|
||||
for dp, dn, fn in os.walk(intputDir):
|
||||
|
||||
Reference in New Issue
Block a user