Correctly get names for columns when they are user defined

This commit is contained in:
Matthew Stidham
2021-01-22 11:02:51 -08:00
committed by Jed Reynolds
parent 51ea187b2f
commit e7e3360dea

View File

@@ -1174,6 +1174,7 @@ class L3CXProfile(BaseProfile):
fields=None fields=None
if col_names is not None and len(col_names) > 0: if col_names is not None and len(col_names) > 0:
fields = ",".join(col_names) fields = ",".join(col_names)
header_row=col_names
else: else:
header_row=list((list(self.json_get("/endp/all")['endpoint'][0].values())[0].keys())) header_row=list((list(self.json_get("/endp/all")['endpoint'][0].values())[0].keys()))
print(fields) print(fields)