Update: Refactor to absolute imports, fix QPS limits, and enhance Gitea sync with SQLite support
This commit is contained in:
@@ -6,7 +6,7 @@ from typing import Optional, Tuple
|
||||
|
||||
import requests
|
||||
|
||||
from .log_utils import get_logger
|
||||
from app.core.utils.log_utils import get_logger
|
||||
|
||||
logger = get_logger(__name__)
|
||||
|
||||
|
||||
@@ -13,7 +13,7 @@ import tkinter as tk
|
||||
from tkinter import messagebox, ttk, simpledialog
|
||||
from datetime import datetime
|
||||
|
||||
from .cloud_sync import GiteaSync
|
||||
from app.core.utils.cloud_sync import GiteaSync
|
||||
from app.config.settings import ConfigManager
|
||||
|
||||
def create_custom_dialog(title="提示", message="", result_file=None, time_info=None,
|
||||
@@ -82,7 +82,7 @@ def create_custom_dialog(title="提示", message="", result_file=None, time_info
|
||||
file_size = os.path.getsize(result_file)
|
||||
file_time = datetime.fromtimestamp(os.path.getmtime(result_file))
|
||||
|
||||
from .file_utils import format_file_size
|
||||
from app.core.utils.file_utils import format_file_size
|
||||
size_text = format_file_size(file_size)
|
||||
|
||||
tk.Label(file_frame, text=f"文件大小: {size_text}", font=("Arial", 10)).pack(anchor=tk.W, padx=10, pady=2)
|
||||
@@ -831,10 +831,10 @@ SYNC_FILES = [
|
||||
"type": "binary",
|
||||
},
|
||||
{
|
||||
"name": "商品记忆库",
|
||||
"remote": "product_memory.json",
|
||||
"local": "data/product_memory.json",
|
||||
"type": "json",
|
||||
"name": "商品记忆库 (DB)",
|
||||
"remote": "product_cache.db",
|
||||
"local": "data/product_cache.db",
|
||||
"type": "binary",
|
||||
},
|
||||
]
|
||||
|
||||
|
||||
@@ -12,7 +12,7 @@ from datetime import datetime
|
||||
from pathlib import Path
|
||||
from typing import Dict, List, Optional, Union, Any
|
||||
|
||||
from .log_utils import get_logger
|
||||
from app.core.utils.log_utils import get_logger
|
||||
|
||||
logger = get_logger(__name__)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user