diff options
author | emkael <emkael@tlen.pl> | 2017-07-31 20:45:13 +0200 |
---|---|---|
committer | emkael <emkael@tlen.pl> | 2017-07-31 20:45:13 +0200 |
commit | bd5fd6a6596dd7625019c6c0f0ff043597cda837 (patch) | |
tree | 809a4ae96291a50fbf87e9dded7c946591163297 /playoff/db.py | |
parent | 85d798ae2eeab73062303f1561c58f23e84d29da (diff) |
Renaming module to avoid ambiguity
Diffstat (limited to 'playoff/db.py')
-rw-r--r-- | playoff/db.py | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/playoff/db.py b/playoff/db.py deleted file mode 100644 index aa0c2e2..0000000 --- a/playoff/db.py +++ /dev/null @@ -1,19 +0,0 @@ -import mysql.connector - -class PlayoffDB(object): - - db_cursor = None - - def __init__(self, settings): - self.database = mysql.connector.connect( - user=settings['user'], - password=settings['pass'], - host=settings['host'], - port=settings['port'] - ) - self.db_cursor = self.database.cursor(buffered=True) - - def fetch(self, db, sql, params): - self.db_cursor.execute(sql.replace('#db#', db), params) - row = self.db_cursor.fetchone() - return row |