diff --git a/wscacicneo/model/reports.py b/wscacicneo/model/reports.py index 208c36e..7a03683 100644 --- a/wscacicneo/model/reports.py +++ b/wscacicneo/model/reports.py @@ -70,7 +70,7 @@ class Reports(): except HTTPError as err: log.error(err.strerror) return None - + return coleta def update_coleta(self,id, document): @@ -116,6 +116,7 @@ class Reports(): for elm in results: if child: parent = getattr(elm, attr) + print(parent) attribute = getattr(parent, child) else: attribute = getattr(elm, attr) diff --git a/wscacicneo/templates/conf_report.pt b/wscacicneo/templates/conf_report.pt index 9bd3efe..248cdd0 100644 --- a/wscacicneo/templates/conf_report.pt +++ b/wscacicneo/templates/conf_report.pt @@ -40,20 +40,22 @@ orgao = $('#orgao').val() attr = $('#coleta').val() if(attr == 'hd'){ - item = "tipo_hd" + alert('Não disponivel no momento') } else if(attr == 'bios'){ - item = "fabricante_bios" + attr = 'win32_bios' + item = "win32_bios_manufacturer" } else if(attr == 'Sistemas Operacionais'){ - attr = 'sistemaoperacional' - item = 'nome_so' + attr = 'operatingsystem' + item = 'operatingsystem_caption' } else if(attr == 'memoria'){ - item = 'interface_memoria' + alert('não disponivel no momento') } else if(attr == 'processador'){ - item = 'nome_processador' + attr = 'win32_processor' + item = 'win32_processor_manufacturer' } else{ alert('Selecione o Item da coleta') -- libgit2 0.21.2