[SIS-xxx] making quote attachment URL column larger

changing migration script for starboard/quotes
This commit is contained in:
Sheldan
2024-07-13 00:50:45 +02:00
parent af006ee880
commit dda7ed7db8
8 changed files with 51 additions and 21 deletions

View File

@@ -12,7 +12,7 @@ def enrich_posts(posts):
print(f"Loading post {post['message_id']}")
url = f"https://discord.com/api/v10/channels/{post['channel_id']}/messages/{post['message_id']}"
message = requests.get(url, headers={'Authorization': token})
time.sleep(5)
time.sleep(0.5)
if message.status_code == 200:
message_obj = json.loads(message.content)
post['content'] = message_obj['content']