I use a piece of code like this in controller: ccc=db.executesql("SELECT count(*) FROM autos WHERE autos.out='T';")
And there is a result in a view: [(10,)] So, I want to have only digits in result without [(,)]. How can deal with it?
I use a piece of code like this in controller: ccc=db.executesql("SELECT count(*) FROM autos WHERE autos.out='T';")
And there is a result in a view: [(10,)] So, I want to have only digits in result without [(,)]. How can deal with it?