{% extends "base.html" %} {% block title %}Data Refresh — Admin{% endblock %} {% block content %}
← Admin Panel

Data Refresh

Upload refresh_data.json exported from the BigQuery → producers/clients pipeline. Existing entries are upserted by code / lookup_code; rows missing from the upload are marked inactive (data preserved).

Current state

  • Active producers: {{ active_producers }}
  • Active clients: {{ active_clients }}

Expected JSON shape

{
  "producers": [
    {"code": "DOEJA1", "prefix": "DOEJA", "suffix": 1, "name": "Jane Doe"}
  ],
  "clients": [
    {"lookup_code": "ACMECO-01", "name": "Acme Corp"}
  ]
}

Upload

{% endblock %} {% block scripts %} {% endblock %}