I am trying to implement a dynamic drag&drop order list to my webapp. I found this tutorial: https://tutorial101.blogspot.com/2021/01/python-flask-dynamic-drag-and-drop.html
My problem is within the function def updateList(): I get an error when reordering in flask, saying:
File "/root/ilms/app.py", line 124, in updateList order = getorder.split(",", number_of_rows) TypeError: 'list' object cannot be interpreted as an integer
I had a look at the result of getorder = request.form[‘order’]:
The result seems to be fine. I see a list of numbers. In the tutorial everything works fine with the next line. I dont understand why this list wants to be interpreted as integer.
Source: Python Questions