MCPcopy Create free account
hub / github.com/OpenRaiser/PaperFlow / _env_edit_payload

Function _env_edit_payload

deployments/desktop/shared/agents.py:817–831  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

815 if report is None:
816 continue
817 if not _is_reading_report_record(report):
818 continue
819 report["_source_priority"] = _report_source_priority(path)
820 dedupe_key = _normalized_report_dedupe_key(report)
821 existing = reports_by_key.get(dedupe_key)
822 if existing is None or (
823 int(report.get("_source_priority") or 0),
824 float(report.get("_sort_ts") or 0),
825 ) > (
826 int(existing.get("_source_priority") or 0),
827 float(existing.get("_sort_ts") or 0),
828 ):
829 reports_by_key[dedupe_key] = report
830 reports = list(reports_by_key.values())
831 reports.sort(key=lambda item: float(item.get("_sort_ts") or 0), reverse=True)
832 return reports
833
834

Callers 1

settingsFunction · 0.85

Calls 2

_read_env_fileFunction · 0.85
getMethod · 0.80

Tested by

no test coverage detected