def app_essentialfile(ccid, filter=None): base_json = non_essential_files.non_essential_json(workspace, ccid) if filter: base_json = non_essential_files.apply_filter(base_json, filter) nonEssentialJson = non_essential_files.list_essential_files(base_json) data = json.dumps(nonEssentialJson, indent=2) return data
def app_nonessential1(ccid): nonEssentialJson = non_essential_files.non_essential_json(workspace, ccid) list1 = [] key_list = nonEssentialJson["workspace"].keys() for key in key_list: if key == "Touchstatus": continue base_json = non_essential_files.apply_filter(nonEssentialJson, key) #data = json.dumps(nonEssentialJson, indent=2) #list.append(non_essential_files.non_essential_count(base_json, key)) if type(non_essential_files.non_essential_count(base_json, key)) != None: list1.append( non_essential_files.non_essential_count(base_json, key)) chart_data = json.dumps(list1, indent=2) return chart_data
def app_nonessential(ccid): nonEssentialJson = non_essential_files.non_essential_json(workspace, ccid) data = json.dumps(nonEssentialJson, indent=2) return data