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:
@@ -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)
|
||||
|
||||
BIN
releases/ServerManager-v1.8.59-win-x64.exe
Normal file
BIN
releases/ServerManager-v1.8.59-win-x64.exe
Normal file
Binary file not shown.
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user