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

Function dm_unread_counts

Scripts/ButSystem.py:1128–1141  ·  view source on GitHub ↗

Return (total_unread, {sender: count}).

(me: str)

Source from the content-addressed store, hash-verified

1126 owner TEXT NOT NULL,
1127 relpath TEXT NOT NULL,
1128 author TEXT NOT NULL,
1129 body TEXT NOT NULL,
1130 created_at TEXT NOT NULL
1131 )
1132 """)
1133 cur.execute("CREATE INDEX IF NOT EXISTS idx_file_comments_owner_path ON file_comments(owner, relpath)")
1134
1135 cur.execute("""
1136 CREATE TABLE IF NOT EXISTS file_shares (
1137 id INTEGER PRIMARY KEY AUTOINCREMENT,
1138 token TEXT UNIQUE NOT NULL,
1139 owner TEXT NOT NULL,
1140 relpath TEXT NOT NULL,
1141 pw_hash TEXT,
1142 expires_at TEXT,
1143 created_at TEXT NOT NULL,
1144 revoked INTEGER NOT NULL DEFAULT 0

Callers 2

chatsFunction · 0.70

Calls 1

db_connectFunction · 0.70

Tested by

no test coverage detected