yusufgundogdu commited on
Commit
1a7c5c9
·
verified ·
1 Parent(s): b75aade

Update database.py

Browse files
Files changed (1) hide show
  1. database.py +2 -2
database.py CHANGED
@@ -32,7 +32,7 @@ def init_db(app):
32
  id INTEGER PRIMARY KEY AUTOINCREMENT,
33
  udid TEXT NOT NULL UNIQUE,
34
  name TEXT DEFAULT NULL,
35
- premiumAccount BOOLEAN DEFAULT FALSE,
36
  usage_limit INTEGER DEFAULT 4,
37
  invoice TEXT DEFAULT NULL
38
  )
@@ -40,7 +40,7 @@ def init_db(app):
40
 
41
  cursor.execute('SELECT COUNT(*) FROM users')
42
  if cursor.fetchone()[0] == 0:
43
- cursor.executemany('INSERT INTO users (udid, name, premiumAccount, usage_limit, invoice) VALUES (?, ?, ?, ?, ?)',
44
  [('test_udid_1', 'Test User 1', True, 4, 'test_invoice_1'),
45
  ('test_udid_2', 'Test User 2', False, 4, None)])
46
 
 
32
  id INTEGER PRIMARY KEY AUTOINCREMENT,
33
  udid TEXT NOT NULL UNIQUE,
34
  name TEXT DEFAULT NULL,
35
+ premium_account BOOLEAN DEFAULT FALSE,
36
  usage_limit INTEGER DEFAULT 4,
37
  invoice TEXT DEFAULT NULL
38
  )
 
40
 
41
  cursor.execute('SELECT COUNT(*) FROM users')
42
  if cursor.fetchone()[0] == 0:
43
+ cursor.executemany('INSERT INTO users (udid, name, premium_account, usage_limit, invoice) VALUES (?, ?, ?, ?, ?)',
44
  [('test_udid_1', 'Test User 1', True, 4, 'test_invoice_1'),
45
  ('test_udid_2', 'Test User 2', False, 4, None)])
46