rename DATABISNIS_API → HYPERION_API (nama menyesatkan: host itu Hyperion vexascan.com, ⊖ API databisnis sendiri; rename bersih simbol + env)
config.py: HYPERION_API = getenv('HYPERION_API') or getenv('DATABISNIS_API') or
default — env lama masih dibaca utk backward-compat deploy (NFS config.env ⊖
perlu diubah) ; konsumen (dashboard _get_liquid_vex, distribute verify_txid,
claim reward_from_tx) rename simbol ; .env.example + docker-compose.yml
(HYPERION_API: ${HYPERION_API:-...} x3 service) ; oracle test_dashboard:
default + fallback env lama (importlib.reload) ; docs SPEC + AGENTS
image web + dist + claim rebuild + push
This commit is contained in:
1 parent
fb16eeafaa
commit
663770f51b
9 files changed
+42
-25
No files matched your search
+2
-2
@@ -14,7 +14,7 @@ import requests
|
||||
from flask import Flask, abort, jsonify, render_template, request
|
||||
|
||||
import db
|
||||
from config import (DASH_HOST, DASH_LIQUID_TTL, DASH_PORT, DATABISNIS_API,
|
||||
from config import (DASH_HOST, DASH_LIQUID_TTL, DASH_PORT, HYPERION_API,
|
||||
DISTRIBUTE_FIRST_RUN, DISTRIBUTE_HOUR, DISTRIBUTE_WEEKDAY,
|
||||
PAGE_SIZE, TARGET_BP, VEX_EXPIRED_DAYS, VEX_MATURITY_DAYS,
|
||||
VEX_REVOTE_TAG_DAYS, VEX_STALE_DAYS, VEX_WARN_DAYS)
|
||||
@@ -213,7 +213,7 @@ def _get_liquid_vex():
|
||||
value = None
|
||||
try:
|
||||
resp = requests.get(
|
||||
f'{DATABISNIS_API}/v2/state/get_account',
|
||||
f'{HYPERION_API}/v2/state/get_account',
|
||||
params={'account': TARGET_BP},
|
||||
timeout=8,
|
||||
)
|
||||
|
||||
Reference in new issue
Block a user