Skip to content

Commit dabf864

Browse files
committed
chore: fluid date info
1 parent 69f3fd3 commit dabf864

1 file changed

Lines changed: 8 additions & 8 deletions

File tree

fluid/proposals.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -58,17 +58,17 @@ def extract_summary_from_description(description):
5858
def get_proposals():
5959
"""Fetch and process Fluid governance proposals"""
6060
try:
61-
# Fetch executed proposals
61+
# Fetch queued proposals
6262
response = requests.get(f"{FLUID_API_URL}?status=queued", timeout=30)
6363
response.raise_for_status()
6464
data = response.json()
6565

6666
if "data" not in data or not data["data"]:
67-
print("No executed proposals found")
67+
print("No queued proposals found")
6868
return
6969

7070
proposals = data["data"]
71-
print(f"Found {len(proposals)} executed proposals")
71+
print(f"Found {len(proposals)} queued proposals")
7272

7373
# Sort proposals by id from lowest to highest
7474
proposals.sort(key=lambda x: int(x["id"]))
@@ -98,13 +98,13 @@ def get_proposals():
9898
message += f"📝 Title: {title}\n"
9999

100100
# Add execution info
101-
executed_at = proposal.get("executed_at")
102-
if executed_at:
101+
queued_at = proposal.get("queued_at")
102+
if queued_at:
103103
try:
104-
exec_date = datetime.fromisoformat(executed_at.replace("Z", "+00:00"))
105-
message += f"✅ Executed: {exec_date.strftime('%Y-%m-%d %H:%M:%S UTC')}\n"
104+
queued_date = datetime.fromisoformat(queued_at.replace("Z", "+00:00"))
105+
message += f"✅ Queued: {queued_date.strftime('%Y-%m-%d %H:%M:%S UTC')}\n"
106106
except Exception:
107-
message += f"✅ Executed: {executed_at}\n"
107+
message += f"✅ Queued: {queued_at}\n"
108108

109109
# Add summary if available
110110
description = proposal.get("description", "")

0 commit comments

Comments
 (0)