home / github / issue_comments

Menu
  • Search all tables
  • GraphQL API

issue_comments: 1008546573

This data as json

html_url issue_url id node_id user created_at updated_at author_association body reactions issue performed_via_github_app
https://github.com/simonw/sqlite-utils/issues/364#issuecomment-1008546573 https://api.github.com/repos/simonw/sqlite-utils/issues/364 1008546573 IC_kwDOCGYnMM48HTMN 9599 2022-01-10T05:05:15Z 2022-01-10T05:05:15Z OWNER

Bit nasty but it might work: ```python def try_until(expected): tries = 0 while True: rows = list(Database(db_path)["rows"].rows) if rows == expected: return tries += 1 if tries > 10: assert False, "Expected {}, got {}".format(expected, rows) time.sleep(tries * 0.1)

try_until([{"name": "Azi"}])
proc.stdin.write(b'{"name": "Suna"}\n')
proc.stdin.flush()
try_until([{"name": "Azi"}, {"name": "Suna"}])

```

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
1095570074  
Powered by Datasette · Queries took 1.104ms · About: github-to-sqlite