commented out debugging code
This commit is contained in:
		
							parent
							
								
									61e774fa97
								
							
						
					
					
						commit
						76c26b99bc
					
				|  | @ -270,13 +270,13 @@ class HpeConfiguratorParser(): | |||
|         db_as_json_str = db_jscript[start_match.end(): end_match.start()] | ||||
|         # print(db_as_json_str[0:20]) | ||||
|         # print(db_as_json_str[-20:-1]) | ||||
|         with open('toto.json', 'w') as f: | ||||
|             f.write(db_as_json_str) | ||||
|         # with open('toto.json', 'w') as f: | ||||
|         #     f.write(db_as_json_str) | ||||
|         db = json.loads(db_as_json_str) | ||||
|         hardware_db = HpeConfiguratorParser._find_child_with_id(db["configResponse"]["configuration"]["topLevels"], 'hardware')['subCategories'] | ||||
|         # print(hardware_db) | ||||
|         with open(hpe_configurator_html_file_path.with_suffix('.json'), 'w', encoding='utf-8') as f: | ||||
|             json.dump(hardware_db, f, ensure_ascii=False, indent=4) | ||||
|         # with open(hpe_configurator_html_file_path.with_suffix('.json'), 'w', encoding='utf-8') as f: | ||||
|         #     json.dump(hardware_db, f, ensure_ascii=False, indent=4) | ||||
|         return hardware_db | ||||
| 
 | ||||
|     def create_catalog_parser(self, hpe_catalog): | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue