(username: str)
| 14694 | status_since = (request.args.get("status_since") or "").strip() |
| 14695 | if not status_since: |
| 14696 | status_since = "1970-01-01T00:00:00Z" |
| 14697 | updates = [] |
| 14698 | try: |
| 14699 | urows = conn.execute( |
| 14700 | """ |
| 14701 | SELECT id, delivered_at, read_at |
| 14702 | FROM dm_messages |
| 14703 | WHERE sender=? AND recipient=? AND ( |
| 14704 | (delivered_at IS NOT NULL AND delivered_at > ?) OR |
| 14705 | (read_at IS NOT NULL AND read_at > ?) |
| 14706 | ) |
| 14707 | ORDER BY id DESC |
| 14708 | LIMIT 120 |
| 14709 | """, |
| 14710 | (me, peer, status_since, status_since), |
| 14711 | ).fetchall() |
| 14712 | for ur in urows: |
| 14713 | updates.append({ |
| 14714 | "id": int(ur["id"]), |
nothing calls this directly
no test coverage detected