Ask coding questions

← Back to all posts
Repltalk not returning last post
h
ch1ck3n (1584)

I have a function that (at least attempts) to get the last post on repl.it

async def get_talk_leaderboard():
  global lboard
  replit = repltalk.Client()
  lolboard = await replit.boards.all.get_posts(sort='new', search='')
  lboard = []
  for post in lolboard:
    lboard.append(post)

but when I run it like this: asyncio.run(get_talk_leaderboard())

it return all but the last post in repl talk.

I'm wondering if I'm doing it wrong or is it just a bug in the repltalk api

Comments
hotnewtop
Coder100 (16868)

maybe you should try making ur own graphql lib

Coder100 (16868)

ikr let me give you the schema @ch1ck3n