mirror of
https://github.com/khoaliber/khoj.git
synced 2026-03-08 05:39:13 +00:00
Clean up unused methods, module imports. Add comments
This commit is contained in:
@@ -89,4 +89,3 @@ def configure_processor(config: FullConfig, verbose: int):
|
|||||||
processor_config.conversation.chat_session = ""
|
processor_config.conversation.chat_session = ""
|
||||||
|
|
||||||
return processor_config
|
return processor_config
|
||||||
|
|
||||||
|
|||||||
17
src/main.py
17
src/main.py
@@ -60,8 +60,14 @@ class ServerThread(QThread):
|
|||||||
uvicorn.run(app, host=self.host, port=self.port)
|
uvicorn.run(app, host=self.host, port=self.port)
|
||||||
|
|
||||||
|
|
||||||
# Subclass QMainWindow to customize your application's main window
|
|
||||||
class ConfigureWindow(QtWidgets.QMainWindow):
|
class ConfigureWindow(QtWidgets.QMainWindow):
|
||||||
|
"""Create Window to Configure Khoj
|
||||||
|
Allow user to
|
||||||
|
1. Enable/Disable search on 1. org-mode, 2. markdown, 3. beancount or 4. image content types
|
||||||
|
2. Configure the server host and port
|
||||||
|
3. Save the configuration to khoj.yml and start the server
|
||||||
|
"""
|
||||||
|
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
super().__init__()
|
super().__init__()
|
||||||
|
|
||||||
@@ -135,15 +141,6 @@ def create_system_tray(gui: QtWidgets.QApplication):
|
|||||||
|
|
||||||
return tray
|
return tray
|
||||||
|
|
||||||
def create_window_to_configure_khoj():
|
|
||||||
"""Create Window to Configure Khoj
|
|
||||||
Allow user to
|
|
||||||
1. Enable/Disable search on 1. org-mode, 2. markdown, 3. beancount or 4. image content types
|
|
||||||
2. Configure the server host and port
|
|
||||||
3. Save the configuration to khoj.yml and start the server
|
|
||||||
"""
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
run()
|
run()
|
||||||
@@ -6,7 +6,7 @@ import pathlib
|
|||||||
import yaml
|
import yaml
|
||||||
|
|
||||||
# Internal Packages
|
# Internal Packages
|
||||||
from src.utils.helpers import is_none_or_empty, get_absolute_path, resolve_absolute_path, merge_dicts
|
from src.utils.helpers import get_absolute_path, resolve_absolute_path
|
||||||
from src.utils.rawconfig import FullConfig
|
from src.utils.rawconfig import FullConfig
|
||||||
|
|
||||||
def cli(args=None):
|
def cli(args=None):
|
||||||
|
|||||||
Reference in New Issue
Block a user