chore: Move clients into separate submodule
This commit is contained in:
@@ -8,10 +8,10 @@ from httpx import (
|
|||||||
)
|
)
|
||||||
import logging
|
import logging
|
||||||
|
|
||||||
from .notes_client import NotesClient
|
from .notes import NotesClient
|
||||||
from .webdav_client import WebDAVClient
|
from .webdav import WebDAVClient
|
||||||
from .tables_client import TablesClient
|
from .tables import TablesClient
|
||||||
from .controllers.notes_search import NotesSearchController
|
from ..controllers.notes_search import NotesSearchController
|
||||||
|
|
||||||
logger = logging.getLogger(__name__)
|
logger = logging.getLogger(__name__)
|
||||||
|
|
||||||
@@ -3,7 +3,7 @@
|
|||||||
from typing import Dict, List, Any, Optional
|
from typing import Dict, List, Any, Optional
|
||||||
import logging
|
import logging
|
||||||
|
|
||||||
from .base_client import BaseNextcloudClient
|
from .base import BaseNextcloudClient
|
||||||
|
|
||||||
logger = logging.getLogger(__name__)
|
logger = logging.getLogger(__name__)
|
||||||
|
|
||||||
@@ -106,7 +106,7 @@ class NotesClient(BaseNextcloudClient):
|
|||||||
)
|
)
|
||||||
try:
|
try:
|
||||||
# Import here to avoid circular imports
|
# Import here to avoid circular imports
|
||||||
from .webdav_client import WebDAVClient
|
from .webdav import WebDAVClient
|
||||||
|
|
||||||
webdav_client = WebDAVClient(self._client, self.username)
|
webdav_client = WebDAVClient(self._client, self.username)
|
||||||
await webdav_client.cleanup_old_attachment_directory(
|
await webdav_client.cleanup_old_attachment_directory(
|
||||||
@@ -152,7 +152,7 @@ class NotesClient(BaseNextcloudClient):
|
|||||||
|
|
||||||
# Clean up attachment directories
|
# Clean up attachment directories
|
||||||
try:
|
try:
|
||||||
from .webdav_client import WebDAVClient
|
from .webdav import WebDAVClient
|
||||||
|
|
||||||
webdav_client = WebDAVClient(self._client, self.username)
|
webdav_client = WebDAVClient(self._client, self.username)
|
||||||
|
|
||||||
@@ -3,7 +3,7 @@
|
|||||||
from typing import Dict, List, Any, Optional
|
from typing import Dict, List, Any, Optional
|
||||||
import logging
|
import logging
|
||||||
|
|
||||||
from .base_client import BaseNextcloudClient
|
from .base import BaseNextcloudClient
|
||||||
|
|
||||||
logger = logging.getLogger(__name__)
|
logger = logging.getLogger(__name__)
|
||||||
|
|
||||||
@@ -5,7 +5,7 @@ from typing import Tuple, Dict, Any, Optional
|
|||||||
import logging
|
import logging
|
||||||
from httpx import HTTPStatusError
|
from httpx import HTTPStatusError
|
||||||
|
|
||||||
from .base_client import BaseNextcloudClient
|
from .base import BaseNextcloudClient
|
||||||
|
|
||||||
logger = logging.getLogger(__name__)
|
logger = logging.getLogger(__name__)
|
||||||
|
|
||||||
Reference in New Issue
Block a user