Commit 9c0758dd by Lucía Elizo Gómez

Biaprint Plugin

parent 24b7fc9a
......@@ -48,12 +48,21 @@ setup(
## Configuración en /opt/kadi/config/kadi.py
```python
PLUGINS = ["...", "biaprint"]
PLUGINS = ["influxdb", "zenodo", "biaprint"]
PLUGIN_CONFIG = {
"influxdb": {
"test": {
"url": "https://foo.bar",
}
},
"zenodo": {
"base_url": "https://foo.bar",
"client_id": "foo",
"client_secret": "bar",
},
"biaprint": {
"host": "https://192.168.128.44",
"api_token": "TU_TOKEN",
"api_token": "TU_TOKEN", # INTRODUCIR TOKEN DE CUENTA KADI4MAT
"upload_dir": "/tmp/biaprint_uploads",
},
}
......
PLUGINS = ["biaprint"]
PLUGIN_CONFIG = {
"biaprint": {
"api_token": "pat_286fd4dd7b415a0448c4d9be052a509adf1ac396494613fb",
"upload_dir": "/tmp/biaprint_uploads",
},
}
......@@ -229,7 +229,6 @@ def _build_extras(metricas: dict) -> list:
if isinstance(value, bool):
extras.append({"key": key, "type": "str", "value": str(value)})
elif isinstance(value, (int, float)):
# Igual que el script: todo numérico va como float
extras.append({"key": key, "type": "float", "value": float(value)})
else:
extras.append({"key": key, "type": "str", "value": str(value)})
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment