MCPcopy Create free account
hub / github.com/dedsec1121fk/DedSec / dm_lock_set

Function dm_lock_set

Scripts/ButSystem.py:14696–14711  ·  view source on GitHub ↗
(username: str)

Source from the content-addressed store, hash-verified

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"]),

Callers

nothing calls this directly

Calls 3

current_userFunction · 0.70
db_connectFunction · 0.70
_chat_lock_setFunction · 0.70

Tested by

no test coverage detected