Rotinas para limpar cadastros, ou seja, tornar descrições mais legiveis, remover registros com erros (TODO), etc
TODO: Describe the installation process
import base
pecas = ['001022','000119']
for i in pecas:
descricao = base.pegar_descricao(i)
t = descricao[0]
print('CODIGO DA PEÇA...:',i)
print('DESCRIÇÃO ATUAL..:',t[0])
corrigido = base.verifica_ortografia(t[0])
trocada = base.verifica_descricao(corrigido)
if trocada != corrigido:
corrigido = trocada
print('DESCRIÇÃO CORRETA:',corrigido)
print()
CODIGO DA PEÇA...: 001022
DESCRIÇÃO ATUAL..: CRUZETA COLUNA DIRECAO
DESCRIÇÃO CORRETA: CRUZETA COLUNA DIREÇÃO
CODIGO DA PEÇA...: 000119
DESCRIÇÃO ATUAL..: JUNTA TAMPA CX. DIRECAO
DESCRIÇÃO CORRETA: JUNTA TAMPA CAIXA DIREÇÃO
- Fork it!
- Create your feature branch:
git checkout -b my-new-feature
- Commit your changes:
git commit -am 'Add some feature'
- Push to the branch:
git push origin my-new-feature
- Submit a pull request :D
TODO: Write history
TODO: Write credits
TODO: Write license