2DU %!s(int64=8) %!d(string=hai) anos
pai
achega
5d4e249501
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      app.py

+ 1 - 1
app.py

@@ -1807,7 +1807,7 @@ def json_in():
             date = get_time()
             for hi in data["history"]:
                 i += 1
-                if(i == 0):
+                if(i == 1):
                     curs.execute('insert into history (id, title, data, date, ip, send, leng) values (?, ?, ?, ?, ?, "", ?)', [i, title, data["data"], date, hi, '+' + len(data["data"])])
                 else:
                     curs.execute('insert into history (id, title, data, date, ip, send, leng) values (?, ?, "", ?, ?, "", "0")', [i, title, date, hi])