Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from Crypto.Cipher import AES
- from Crypto.Hash import SHA256
- from pyfiglet import Figlet
- import sqlite3
- import time
- import sys
- import os
- database = 'blagajna.db'
- command = ''
- connect = sqlite.connect('.blagajna.db')
- c = conn.cursor()
- def caller(command_local):
- global command
- if command_local == "exit":
- sys.exit(0)
- def main():
- global command
- while True:
- command = input('sprana_blagajna>')
- database_stuff.start()
- caller(command)
- class database_stuff():
- def start(self):
- c.execute('CREATE TABLE IF NOT EXIST logiranje(date TEXT, value REAL, curent REAL, razlog, curent_kes, REAL)')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement