Normalize fullwidth punctuation to ASCII across codebase.
Add scripts/normalize_ambiguous_unicode.py; fix corrupted patch_instance_theme_templates.py. Preserves curly quotes in string literals; removes Git homoglyph warnings on .env.example. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
"""持仓时间平仓:开仓后按 1h/2h/4h 定时市价平仓。"""
|
||||
"""持仓时间平仓:开仓后按 1h/2h/4h 定时市价平仓."""
|
||||
from __future__ import annotations
|
||||
|
||||
import time
|
||||
@@ -47,7 +47,7 @@ def _row_val(row: Any, key: str, default=None):
|
||||
|
||||
|
||||
def time_close_settings_from_row(row: Any) -> tuple[int, Optional[int], Optional[int]]:
|
||||
"""返回 (enabled, hours, close_at_ms)。"""
|
||||
"""返回 (enabled, hours, close_at_ms)."""
|
||||
enabled = int(_row_val(row, "time_close_enabled", 0) or 0) != 0
|
||||
hours = normalize_time_close_hours(_row_val(row, "time_close_hours"))
|
||||
close_at = _row_val(row, "time_close_at_ms")
|
||||
|
||||
Reference in New Issue
Block a user