Sfoglia il codice sorgente

fix: code lint (#16164)

Co-authored-by: 刘江波 <jiangbo721@163.com>
tags/1.1.1
jiangbo721 7 mesi fa
parent
commit
e0cf55f5e9
Nessun account collegato all'indirizzo email del committer
1 ha cambiato i file con 9 aggiunte e 9 eliminazioni
  1. 9
    9
      api/services/ops_service.py

+ 9
- 9
api/services/ops_service.py Vedi File

@@ -24,10 +24,10 @@ class OpsService:
return None

# decrypt_token and obfuscated_token
tenant = db.session.query(App).filter(App.id == app_id).first()
if not tenant:
app = db.session.query(App).filter(App.id == app_id).first()
if not app:
return None
tenant_id = tenant.tenant_id
tenant_id = app.tenant_id
decrypt_tracing_config = OpsTraceManager.decrypt_tracing_config(
tenant_id, tracing_provider, trace_config_data.tracing_config
)
@@ -117,10 +117,10 @@ class OpsService:
return None

# get tenant id
tenant = db.session.query(App).filter(App.id == app_id).first()
if not tenant:
app = db.session.query(App).filter(App.id == app_id).first()
if not app:
return None
tenant_id = tenant.tenant_id
tenant_id = app.tenant_id
tracing_config = OpsTraceManager.encrypt_tracing_config(tenant_id, tracing_provider, tracing_config)
if project_url:
tracing_config["project_url"] = project_url
@@ -157,10 +157,10 @@ class OpsService:
return None

# get tenant id
tenant = db.session.query(App).filter(App.id == app_id).first()
if not tenant:
app = db.session.query(App).filter(App.id == app_id).first()
if not app:
return None
tenant_id = tenant.tenant_id
tenant_id = app.tenant_id
tracing_config = OpsTraceManager.encrypt_tracing_config(
tenant_id, tracing_provider, tracing_config, current_trace_config.tracing_config
)

Loading…
Annulla
Salva