Skip to content

fix: code lint #16164

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 19, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 9 additions & 9 deletions api/services/ops_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,10 @@ def get_tracing_app_config(cls, app_id: str, tracing_provider: str):
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
)
Expand Down Expand Up @@ -117,10 +117,10 @@ def create_tracing_app_config(cls, app_id: str, tracing_provider: str, tracing_c
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
Expand Down Expand Up @@ -157,10 +157,10 @@ def update_tracing_app_config(cls, app_id: str, tracing_provider: str, tracing_c
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
)
Expand Down
Loading