diff options
author | André Glüpker <git@wgmd.de> | 2022-10-08 20:40:02 +0200 |
---|---|---|
committer | André Glüpker <git@wgmd.de> | 2022-10-08 20:42:27 +0200 |
commit | 75d015d3389c7a7f105c77a68291f293b5cdd4a0 (patch) | |
tree | a90f1ca1055fce340a88220bc7a76c73c3dec6d8 /Database.py | |
parent | 12b10b204c59ef16ca7dd793ee7724f93e8136d3 (diff) | |
download | steam-75d015d3389c7a7f105c77a68291f293b5cdd4a0.tar.gz steam-75d015d3389c7a7f105c77a68291f293b5cdd4a0.tar.bz2 steam-75d015d3389c7a7f105c77a68291f293b5cdd4a0.zip |
Format with black
Diffstat (limited to 'Database.py')
-rwxr-xr-x | Database.py | 19 |
1 files changed, 11 insertions, 8 deletions
diff --git a/Database.py b/Database.py index 001f2b2..c2e4e4b 100755 --- a/Database.py +++ b/Database.py @@ -3,32 +3,35 @@ # import os # import time import sqlite3 + # database = sqlite3.connect('data.db') -class Database(): + +class Database: def __init__(self): - self._connection = sqlite3.connect('data.db') + self._connection = sqlite3.connect("data.db") self._cursor = self._connection.cursor() - self._cursor. + # self._cursor. # print(self._database) print(self._cursor) def initDB(self): - print('If db not exists...generate schema here') + print("If db not exists...generate schema here") def login(self, username, password): - print('try to login') - return 'userobject' or false + print("try to login") + return "userobject" or False # Use flask session management? # What crypt/hash to use? def getMyTracked(self, userid): - return 'list of tracked users' + return "list of tracked users" def msg(self, msg): print(msg) + if __name__ == "__main__": database = Database() database.initDB() - database.msg('2') + database.msg("2") |