Browse Source

Strip strings to avoid conversion or search errors

producao
Sesostris Vieira 10 years ago
parent
commit
dcec3d833b
  1. 14
      scripts/importa_pesquisa.py

14
scripts/importa_pesquisa.py

@ -57,13 +57,13 @@ def importa(file_list):
outdata.writerow(head) outdata.writerow(head)
for row in indata: for row in indata:
data = row[0] data = row[0].strip()
pesquisador = row[1] pesquisador = row[1].strip()
uf_cidade = row[2] uf_cidade = row[2].strip()
tem_portal = row[3] tem_portal = row[3].strip()
pmodelo = row[4] pmodelo = row[4].strip()
url = row[5] url = row[5].strip()
obs = row[6] obs = row[6].strip()
if data == '': if data == '':
data = None data = None

Loading…
Cancel
Save