feat: remove missing status IDs; add post on false dichotomy in ai coders
This commit is contained in:
parent
3c1bcfc32b
commit
a811711d6e
1 changed files with 7 additions and 15 deletions
22
threads.py
22
threads.py
|
|
@ -7,26 +7,12 @@ from . import utils
|
||||||
threads = Blueprint('threads', __name__, template_folder='templates', static_folder='static')
|
threads = Blueprint('threads', __name__, template_folder='templates', static_folder='static')
|
||||||
|
|
||||||
thread_ids = [
|
thread_ids = [
|
||||||
'115620814664415087',
|
'116245553803866191',
|
||||||
'115090396384901152',
|
|
||||||
'114700726180478526',
|
|
||||||
'114649657564007543',
|
'114649657564007543',
|
||||||
'114598027067799906',
|
|
||||||
'114490408596372783',
|
'114490408596372783',
|
||||||
'114424567700847705',
|
|
||||||
'114202630459242553',
|
|
||||||
'114012659479108663',
|
'114012659479108663',
|
||||||
'113986386529736815',
|
|
||||||
'113775430984622212',
|
|
||||||
'113650907203476875',
|
'113650907203476875',
|
||||||
'113449531956042438',
|
'113449531956042438',
|
||||||
'113300434695033812',
|
|
||||||
'113210189309775644',
|
|
||||||
'113073168505436055',
|
|
||||||
'112979161274124372',
|
|
||||||
'112857903897175549',
|
|
||||||
'112857168376771706',
|
|
||||||
'112524983806134679',
|
|
||||||
]
|
]
|
||||||
|
|
||||||
###########################################################
|
###########################################################
|
||||||
|
|
@ -88,8 +74,14 @@ def fetch_statuses(ids):
|
||||||
response = requests.get(server() + '/api/v1/statuses?id[]=' + query_params )
|
response = requests.get(server() + '/api/v1/statuses?id[]=' + query_params )
|
||||||
if response.status_code == 200:
|
if response.status_code == 200:
|
||||||
statuses = response.json()
|
statuses = response.json()
|
||||||
|
|
||||||
|
# When you need to check for missing statuses:
|
||||||
|
# missing_ids = [s for s in thread_ids if not any(s in d.values() for d in statuses)]
|
||||||
|
# print(f"missing: {missing_ids}")
|
||||||
|
|
||||||
return statuses
|
return statuses
|
||||||
else:
|
else:
|
||||||
|
print(f"response status code: {response.status_code}")
|
||||||
return []
|
return []
|
||||||
|
|
||||||
def fetch_thread(id):
|
def fetch_thread(id):
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue