Skip to content

Commit

Permalink
Patch
Browse files Browse the repository at this point in the history
Remove unused imports
  • Loading branch information
EndermanPC committed Feb 10, 2024
1 parent 64bc7a7 commit 9987f89
Show file tree
Hide file tree
Showing 9 changed files with 2 additions and 16 deletions.
2 changes: 0 additions & 2 deletions FTS/update.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import sqlite3

from log.write import sys_log

def Update_Virtual_Table(conn):
Expand Down
2 changes: 0 additions & 2 deletions account/userid.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import sqlite3

def get_user_id(cursor, username):
cursor.execute("SELECT id FROM users WHERE username = ?", (username,))

Expand Down
2 changes: 0 additions & 2 deletions account/username.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import sqlite3

def get_username(cursor, user_id):
cursor.execute("SELECT username FROM users WHERE id = ?", (user_id,))

Expand Down
3 changes: 1 addition & 2 deletions adpn.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,11 @@
import subprocess
from FTS.initializer import Initializer_Virtual_Table
from FTS.update import Update_Virtual_Table
from account.userid import get_user_id
from account.username import get_username
from atmt import ATMT_STRT
from initializer.database import Initializer_Database
from initializer.loader import database_loader
from log.write import log, sys_log
from log.write import sys_log
from account.loader import account_database_loader
from account.reliability import get_user_reliability

Expand Down
2 changes: 1 addition & 1 deletion initializer/database.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import sqlite3
from log.write import log, sys_log
from log.write import sys_log
from datetime import datetime

from account.database import create_users_database
Expand Down
2 changes: 0 additions & 2 deletions manager/edit.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@
from bs4 import BeautifulSoup
import json
from datetime import datetime
from urllib.parse import urlparse
from os.path import splitext

GOOGLE_SAFE_BROWSING_API_KEY = 'API_KEY'

Expand Down
2 changes: 0 additions & 2 deletions manager/insert.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@
from bs4 import BeautifulSoup
import json
from datetime import datetime
from urllib.parse import urlparse
from os.path import splitext

GOOGLE_SAFE_BROWSING_API_KEY = 'API_KEY'

Expand Down
1 change: 0 additions & 1 deletion manager/manager.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import streamlit as st
from account.userid import get_user_id
from log.write import log
from account.loader import account_database_loader
from account.reliability import get_user_reliability
Expand Down
2 changes: 0 additions & 2 deletions manager/remove.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import sqlite3

def remove_data(conn, site_id):
cursor = conn.cursor()

Expand Down

0 comments on commit 9987f89

Please sign in to comment.