Explorar o código

maint: `put_table()` copy user data

wangweimin %!s(int64=4) %!d(string=hai) anos
pai
achega
45d8b9a099
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  1. 2 0
      pywebio/output.py

+ 2 - 0
pywebio/output.py

@@ -420,6 +420,8 @@ def put_table(tdata, header=None, scope=Scope.Current, position=OutputPosition.B
             for row in tdata
         ]
         header = header_
+    else:
+        tdata = [list(i) for i in tdata]  # copy data
 
     if header:
         tdata = [header, *tdata]