{% extends "base.html" %} {% block title %} » Rate Server Importer {% endblock %} {% block nav %} Rate Server Importer {% endblock %} {% block content %} {% if importer %}

Controls

{% if importer.going.is_set() %} {% endif %}
Is Going? {{importer.going.is_set()}}
Import Now
Progress {{importer.progress}}

Log

Latest Imported Files

Electricity
MDD Version {{ config_state.mdd_version }}
LAF Files {% if 'laf_importer' in config_state %} {% for code, dt in config_state.laf_importer.items() %} {% endfor %}
{{code}} {{dt}}
{% endif %}
DNO Spreadsheets {% for rs in dno_rs %} {% set script = rs.make_script() %} {% endfor %}
DNO Start Date File Name
{{rs.contract.name}} {{rs.start_date|hh_format}} {{script.a_file_name}}
TNUoS Spreadsheet {% for rs in tnuos_rs %} {% set script = rs.make_script() %} {% endfor %}
Start Date File Name
{{rs.start_date|hh_format}} {{script.a_file_name}}
BSUoS PDF {% for rs in bsuos_rs %} {% set script = rs.make_script() %} {% endfor %}
Start Date File Name
{{rs.start_date|hh_format}} {{script.a_file_name}}
Gas
NTS Spreadsheet {% for rs in nts_rs %} {% set script = rs.make_script() %} {% endfor %}
Start Date File Name
{{rs.start_date|hh_format}} {{script.a_file_name}}
DN Spreadsheet {% for rs in dn_rs %} {% set script = rs.make_script() %} {% endfor %}
Start Date File Name
{{rs.start_date|hh_format}} {{script.a_file_name}}

Configuration

The rate server details can be set in the configuration with an entry like:

"rate_server": {
  "url": "https://api.github.com/repos/WessexWater/chellow-rates",
  "branch": "main",
},

If url or branch are omitted, then the default is as above.

{% else %}

Importer not present.

{% endif %} {% endblock %}