INNER CODE UNIT · Python

backfill

nubenetes/awesome-kubernetes · scripts/backfill_discovered_at.py:15

def backfill():
    inv = load_inventory()
    updated = 0
    total = 0

    for url, entry in inv.items():
        if not isinstance(entry, dict):
            continue
        total += 1
        if entry.get("discovered_at"):
            continue

        discovered = None

        gh_pushed = entry.get("gh_pushed")
        if gh_pushed and isinstance(gh_pushed, str) and len(gh_pushed) >= 10:
            discovered = gh_pushed

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…