Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -87,6 +87,7 @@ def get_proposals():
|
|
87 |
f"https://api.polkassembly.io/api/v1/posts/on-chain-post?proposalType={REFERENDUM_TYPE}&postId={POST_ID}",
|
88 |
headers={"x-network": "kusama"})
|
89 |
if rn.ok:
|
|
|
90 |
proposal_data = rn.json()
|
91 |
line = [proposal_data.get("content"), proposal_data.get("status"), get_sum(proposal_data.get("content"))]
|
92 |
df.loc[POST_ID] = line
|
|
|
87 |
f"https://api.polkassembly.io/api/v1/posts/on-chain-post?proposalType={REFERENDUM_TYPE}&postId={POST_ID}",
|
88 |
headers={"x-network": "kusama"})
|
89 |
if rn.ok:
|
90 |
+
print(POST_ID)
|
91 |
proposal_data = rn.json()
|
92 |
line = [proposal_data.get("content"), proposal_data.get("status"), get_sum(proposal_data.get("content"))]
|
93 |
df.loc[POST_ID] = line
|