diff options
author | André Glüpker <git@wgmd.de> | 2017-10-01 14:50:19 +0200 |
---|---|---|
committer | André Glüpker <git@wgmd.de> | 2017-10-01 14:50:19 +0200 |
commit | 1585395e7e530665c565b88fea15cbea68d3a88d (patch) | |
tree | 204033b68d01e27036a68d625f4474f3254880c2 /Database.py | |
download | steam-1585395e7e530665c565b88fea15cbea68d3a88d.tar.gz steam-1585395e7e530665c565b88fea15cbea68d3a88d.tar.bz2 steam-1585395e7e530665c565b88fea15cbea68d3a88d.zip |
Initial public release
Diffstat (limited to 'Database.py')
-rwxr-xr-x | Database.py | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/Database.py b/Database.py new file mode 100755 index 0000000..001f2b2 --- /dev/null +++ b/Database.py @@ -0,0 +1,34 @@ +#!/usr/bin/env python3 + +# import os +# import time +import sqlite3 +# database = sqlite3.connect('data.db') + +class Database(): + def __init__(self): + self._connection = sqlite3.connect('data.db') + self._cursor = self._connection.cursor() + self._cursor. + # print(self._database) + print(self._cursor) + + def initDB(self): + print('If db not exists...generate schema here') + + def login(self, username, password): + 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' + + def msg(self, msg): + print(msg) + +if __name__ == "__main__": + database = Database() + database.initDB() + database.msg('2') |