RE: Post your Ctrl+V 09-06-2014, 10:13 AM
#72
Code:
class Data(object):
@staticmethod
def dex(query,string=True):
import sqlite3
database = sqlite3.connect("/home/equinox/Desktop/Python/Bots/Chatango/new/databases.db", isolation_level = None)
cursor = database.cursor()
try:
data = [x for x in cursor.execute(query)]
return str(data) if string else data
except Exception as e:
return str(e)
Handle.__errors__ +=1(Put into code tags for indentation)
![[Image: BXqGARG.png]](https://i.imgur.com/BXqGARG.png)










![[+]](https://sinister.li/images/modern/collapse_collapsed.png)