v1.8.59: fix @staticmethod bug in SQL/PHP format converters

_sql_val and _php_val were @staticmethod but called via self —
caused "takes 1 positional argument but 2 were given" error.
Converted to regular methods. All 16 formats tested OK.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
chrome-storm-c442
2026-02-25 05:15:34 -05:00
parent ec4ad28c29
commit 1c4288ba93
3 changed files with 3 additions and 5 deletions

View File

@@ -763,8 +763,7 @@ class QueryTab(ctk.CTkFrame):
lines.append(f"UPDATE `{tbl}` SET {sets} WHERE {where};")
return "\n".join(lines)
@staticmethod
def _sql_val(v) -> str:
def _sql_val(self, v) -> str:
if v is None or str(v) == "NULL":
return "NULL"
s = str(v)
@@ -805,8 +804,7 @@ class QueryTab(ctk.CTkFrame):
lines.append("]")
return "\n".join(lines)
@staticmethod
def _php_val(v) -> str:
def _php_val(self, v) -> str:
if v is None or str(v) == "NULL":
return "null"
s = str(v)

Binary file not shown.

View File

@@ -1,6 +1,6 @@
"""Version info for ServerManager."""
__version__ = "1.8.58"
__version__ = "1.8.59"
__app_name__ = "ServerManager"
__author__ = "aibot777"
__description__ = "Desktop GUI for managing remote servers"