forked from nrfconnect/sdk-nrf
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
9ae1333
commit b98efbd
Showing
2 changed files
with
30 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
#!/usr/bin/env python3 | ||
|
||
import sqlite3 | ||
|
||
db_conn = sqlite3.connect("../docSet.dsidx") | ||
cur = db_conn.cursor() | ||
cur2 = db_conn.cursor() | ||
res = cur.execute("select * from searchIndex") | ||
|
||
for id, name, t, path in res: | ||
if name.find("__") != -1 and any([name.startswith(x) for x in ["group", "union", "struct"]]): | ||
cur2.execute(f"delete from searchIndex where id={id}") | ||
|
||
db_conn.commit() |