mat-1/repl-talk-api

get_reports() ReportList not getting reset before loop

Closed this issue · 3 comments

When doing async for report in await client.get_reports(resolved=False): multiple times, the get_reports() does not reset its list of reports for each loop, this results in an outdated and duplicated reports list being returned.

This is what I'm talking about:
image
As you can see, for each loop, the length of the list being returned by get_reports() increases by 4 (the number of actual unresolved reports). Btw the lst variable is getting reset correctly each loop.

Now it just errors if you try to get_reports() more than once (previous thing about it not resetting the list from the previous loop still occurs)
image

edit: seems to be working now 🤔
another edit: I actually have no idea what's going on, it sometimes works, but sometimes doesn't

REEEE ILL FIX

Fixed by #17