mirror of
https://github.com/danswer-ai/danswer.git
synced 2025-07-07 21:20:39 +02:00
Small formatting fixes
This commit is contained in:
@ -1,15 +1,16 @@
|
||||
# This file is purely for development use, not included in any builds
|
||||
import requests
|
||||
import os
|
||||
import sys
|
||||
|
||||
import requests
|
||||
|
||||
# makes it so `PYTHONPATH=.` is not required when running this script
|
||||
parent_dir = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
|
||||
sys.path.append(parent_dir)
|
||||
|
||||
|
||||
from danswer.configs.app_configs import DOCUMENT_INDEX_NAME
|
||||
from danswer.document_index.vespa.index import DOCUMENT_ID_ENDPOINT
|
||||
from danswer.utils.logger import setup_logger
|
||||
from danswer.configs.app_configs import DOCUMENT_INDEX_NAME # noqa: E402
|
||||
from danswer.document_index.vespa.index import DOCUMENT_ID_ENDPOINT # noqa: E402
|
||||
from danswer.utils.logger import setup_logger # noqa: E402
|
||||
|
||||
logger = setup_logger()
|
||||
|
||||
|
@ -1,17 +1,18 @@
|
||||
import psycopg2
|
||||
|
||||
import os
|
||||
import sys
|
||||
|
||||
import psycopg2
|
||||
|
||||
# makes it so `PYTHONPATH=.` is not required when running this script
|
||||
parent_dir = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
|
||||
sys.path.append(parent_dir)
|
||||
|
||||
from danswer.configs.app_configs import POSTGRES_DB
|
||||
from danswer.configs.app_configs import POSTGRES_HOST
|
||||
from danswer.configs.app_configs import POSTGRES_PASSWORD
|
||||
from danswer.configs.app_configs import POSTGRES_PORT
|
||||
from danswer.configs.app_configs import POSTGRES_USER
|
||||
from danswer.db.credentials import create_initial_public_credential
|
||||
from danswer.configs.app_configs import POSTGRES_DB # noqa: E402
|
||||
from danswer.configs.app_configs import POSTGRES_HOST # noqa: E402
|
||||
from danswer.configs.app_configs import POSTGRES_PASSWORD # noqa: E402
|
||||
from danswer.configs.app_configs import POSTGRES_PORT # noqa: E402
|
||||
from danswer.configs.app_configs import POSTGRES_USER # noqa: E402
|
||||
from danswer.db.credentials import create_initial_public_credential # noqa: E402
|
||||
|
||||
|
||||
def wipe_all_rows(database: str) -> None:
|
||||
|
Reference in New Issue
Block a user