MCPcopy Create free account
hub / github.com/PierreGode/Ragnar / _first_present

Method _first_present

utils.py:861–869  ·  view source on GitHub ↗
(row, normalized_row, *keys)

Source from the content-addressed store, hash-verified

859 return normalized
860
861 def _first_present(row, normalized_row, *keys):
862 for key in keys:
863 if key in row and row[key] not in (None, ''):
864 return row[key]
865
866 normalized_key = key.strip().lower()
867 if normalized_key in normalized_row and normalized_row[normalized_key] not in (None, ''):
868 return normalized_row[normalized_key]
869 return ''
870
871 for service, filepath in cred_files.items():
872 try:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected