mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-07-12 22:42:13 +02:00
chore: remove VERSION file and clean up unused imports across multiple files
This commit is contained in:
parent
c70ce0b711
commit
deea3fa544
18 changed files with 7 additions and 43 deletions
|
|
@ -1,6 +1,6 @@
|
|||
import base64
|
||||
import logging
|
||||
from typing import List, Optional, Dict, Any, Tuple
|
||||
from typing import List, Optional, Dict, Any
|
||||
from github3 import login as github_login, exceptions as github_exceptions
|
||||
from github3.repos.contents import Contents
|
||||
from github3.exceptions import ForbiddenError, NotFoundError
|
||||
|
|
|
|||
|
|
@ -5,13 +5,12 @@ A module for retrieving conversation history from Slack channels.
|
|||
Allows fetching channel lists and message history with date range filtering.
|
||||
"""
|
||||
|
||||
import os
|
||||
import time # Added import
|
||||
import logging # Added import
|
||||
from slack_sdk import WebClient
|
||||
from slack_sdk.errors import SlackApiError
|
||||
from datetime import datetime
|
||||
from typing import Dict, List, Optional, Tuple, Any, Union
|
||||
from typing import Dict, List, Optional, Tuple, Any
|
||||
|
||||
logger = logging.getLogger(__name__) # Added logger
|
||||
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
import unittest
|
||||
from unittest.mock import patch, Mock, call
|
||||
from unittest.mock import patch, Mock
|
||||
from datetime import datetime
|
||||
|
||||
# Adjust the import path based on the actual location if test_github_connector.py
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
from typing import List, Any
|
||||
from typing import List
|
||||
from pydantic import BaseModel, ConfigDict
|
||||
from app.db import DocumentType
|
||||
from datetime import datetime
|
||||
|
|
|
|||
|
|
@ -6,7 +6,6 @@ from app.db import Document, DocumentType, Chunk
|
|||
from app.schemas import ExtensionDocumentContent
|
||||
from app.config import config
|
||||
from app.prompts import SUMMARY_PROMPT_TEMPLATE
|
||||
from datetime import datetime
|
||||
from app.utils.document_converters import convert_document_to_markdown, generate_content_hash
|
||||
from langchain_core.documents import Document as LangChainDocument
|
||||
from langchain_community.document_loaders import FireCrawlLoader, AsyncChromiumLoader
|
||||
|
|
|
|||
|
|
@ -2,7 +2,6 @@ from typing import Optional, Tuple
|
|||
from sqlalchemy.ext.asyncio import AsyncSession
|
||||
from sqlalchemy.exc import SQLAlchemyError
|
||||
from sqlalchemy.future import select
|
||||
from sqlalchemy import delete
|
||||
from datetime import datetime, timedelta, timezone
|
||||
from app.db import Document, DocumentType, Chunk, SearchSourceConnector, SearchSourceConnectorType
|
||||
from app.config import config
|
||||
|
|
@ -15,7 +14,6 @@ from app.connectors.discord_connector import DiscordConnector
|
|||
from slack_sdk.errors import SlackApiError
|
||||
import logging
|
||||
import asyncio
|
||||
from concurrent.futures import ThreadPoolExecutor
|
||||
|
||||
from app.utils.document_converters import generate_content_hash
|
||||
|
||||
|
|
|
|||
|
|
@ -1,5 +1,4 @@
|
|||
import json
|
||||
from typing import List, Dict, Any, Optional, Tuple
|
||||
from typing import List, Dict, Optional
|
||||
import asyncio
|
||||
from sqlalchemy.ext.asyncio import AsyncSession
|
||||
from sqlalchemy.future import select
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue