-
-
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.
Add search options: text, image, video Disable ATMT Strt in Search/Index.py because it does not work with new databases Patch: Add databases for new search options
- Loading branch information
1 parent
81be3de
commit ad70fac
Showing
10 changed files
with
269 additions
and
85 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
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
Binary file not shown.
Binary file not shown.
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 |
---|---|---|
@@ -1,12 +1,30 @@ | ||
import sqlite3 | ||
from log.write import sys_log | ||
|
||
def database_loader(): | ||
conn = sqlite3.connect('./database/search-index.db', check_same_thread=False) | ||
sys_log("Loaded", "search-index.db") | ||
return conn | ||
def database_loader(num): | ||
if num == 0: | ||
conn = sqlite3.connect('./database/search-index0.db', check_same_thread=False) | ||
sys_log("Loaded", "search-index0.db") | ||
return conn | ||
elif num == 1: | ||
conn = sqlite3.connect('./database/search-index1.db', check_same_thread=False) | ||
sys_log("Loaded", "search-index1.db") | ||
return conn | ||
elif num == 2: | ||
conn = sqlite3.connect('./database/search-index2.db', check_same_thread=False) | ||
sys_log("Loaded", "search-index2.db") | ||
return conn | ||
|
||
def censorship_database_loader(): | ||
conn = sqlite3.connect('./database/censorship.db') | ||
sys_log("Loaded", "censorship.db") | ||
return conn | ||
def censorship_database_loader(num): | ||
if num == 0: | ||
conn = sqlite3.connect('./database/censorship0.db') | ||
sys_log("Loaded", "censorship0.db") | ||
return conn | ||
if num == 1: | ||
conn = sqlite3.connect('./database/censorship1.db') | ||
sys_log("Loaded", "censorship1.db") | ||
return conn | ||
if num == 2: | ||
conn = sqlite3.connect('./database/censorship2.db') | ||
sys_log("Loaded", "censorship2.db") | ||
return conn |
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 |
---|---|---|
@@ -1,17 +0,0 @@ | ||
SYS: Loaded: users-account.db | ||
SYS: Initializer Database: search-index.db | ||
SYS: Initializer Censorship Database: censorship.db | ||
SYS: Create Users Account Database: users-account.db | ||
SYS: Initializer Virtual Table: search-index.db | ||
SYS: Loaded: search-index.db | ||
SYS: Update Virtual Table: search-index.db | ||
SYS: Start Server: 2024-02-12 07:20:55 | ||
SYS: Loaded: search-index.db | ||
SYS: Loaded: users-account.db | ||
SYS: Loaded: search-index.db | ||
SYS: Loaded: search-index.db | ||
SYS: Loaded: search-index.db | ||
SYS: Update Virtual Table: search-index.db | ||
SYS: Loaded: search-index.db | ||
SYS: Loaded: search-index.db | ||
SYS: Loaded: search-index.db | ||
Oops, something went wrong.