Skip to content

Commit

Permalink
fix influxdb data collect
Browse files Browse the repository at this point in the history
  • Loading branch information
BennyThink committed Dec 30, 2023
1 parent 7689c97 commit b5e6c85
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ytdlbot/database.py
Original file line number Diff line number Diff line change
Expand Up @@ -317,7 +317,7 @@ def get_worker_data() -> dict:
password = os.getenv("FLOWER_PASSWORD", "123456abc")
token = base64.b64encode(f"{username}:{password}".encode()).decode()
headers = {"Authorization": f"Basic {token}"}
r = requests.get("https://celery.dmesg.app/dashboard?json=1", headers=headers)
r = requests.get("https://celery.dmesg.app/workers?json=1", headers=headers)
if r.status_code != 200:
return dict(data=[])
return r.json()
Expand Down

0 comments on commit b5e6c85

Please sign in to comment.