From 186c37a8c0a58c784a10c5750fb960b07ba5f8d6 Mon Sep 17 00:00:00 2001 From: Ayo Ayco Date: Sun, 2 Jun 2024 09:42:35 +0200 Subject: [PATCH] fix: server param called as a fn --- threads.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/threads.py b/threads.py index 42d2ffe..bd8514f 100755 --- a/threads.py +++ b/threads.py @@ -1,5 +1,6 @@ from flask import Blueprint, render_template, current_app import requests +import json from datetime import datetime import markdown import re @@ -108,7 +109,7 @@ def fetch_thread(id): def get_descendants(server, status): author_id = status['account']['id'] - context = requests.get(server() + '/api/v1/statuses/' + status['id'] + '/context').json() + context = requests.get(server + '/api/v1/statuses/' + status['id'] + '/context').json() descendants = [] for reply in context['descendants']: # TODO: the following condition will include a reply to a reply of the author