Skip to content

Commit

Permalink
Merge pull request #58 from Nadro-J/main
Browse files Browse the repository at this point in the history
set title to the title pulled from polkassembly/subsquare api
  • Loading branch information
Nadro-J authored Jul 30, 2024
2 parents 4e2f2b9 + f170972 commit a1d0b33
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bot/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -608,7 +608,7 @@ async def recheck_proposals():
title_from_vote_counts = client.vote_counts[message_id]['title'].strip()

if title_from_api != title_from_vote_counts:
client.vote_counts[message_id]['title'] = title = opengov['title'][:config.DISCORD_TITLE_MAX_LENGTH].strip()
client.vote_counts[message_id]['title'] = title = title_from_api
# set title on thread id contained in vote_counts.json
await client.save_vote_counts()

Expand All @@ -619,7 +619,7 @@ async def recheck_proposals():
await client.manage_discord_thread(
channel=channel,
operation='edit',
title=title,
title=title_from_api,
index=proposal_index,
content=opengov['content'],
governance_tag="",
Expand Down

0 comments on commit a1d0b33

Please sign in to comment.