wrong exprot xlsx
This commit is contained in:
parent
cdc6199a48
commit
f69af3c2c4
|
|
@ -254,6 +254,8 @@ def exportdoc(a,id):
|
|||
return res
|
||||
|
||||
|
||||
import re
|
||||
ILLEGAL_CHARACTERS_RE = re.compile(r'[\000-\010]|[\013-\014]|[\016-\037]')
|
||||
def exportxlsx(a,objs):
|
||||
if a =='yh':
|
||||
wb = load_workbook(dirname + 'safesite/exportemp/yhdc.xlsx')
|
||||
|
|
@ -297,7 +299,7 @@ def exportxlsx(a,objs):
|
|||
sheet['m'+str(i+4)] = vl[i]['zgbm__partname']
|
||||
sheet['n'+str(i+4)] = vl[i]['zgr__name']
|
||||
sheet['o'+str(i+4)] = vl[i]['zgqx']
|
||||
sheet['p'+str(i+4)] = vl[i]['yyfx']
|
||||
sheet['p'+str(i+4)] = ILLEGAL_CHARACTERS_RE.sub(r'', vl[i]['yyfx'])
|
||||
sheet['q'+str(i+4)] = vl[i]['zgcs']
|
||||
sheet['r'+str(i+4)] = vl[i]['zgms']
|
||||
sheet['s'+str(i+4)] = vl[i]['shr__name']
|
||||
|
|
|
|||
Loading…
Reference in New Issue