mirror of
https://github.com/brmlab/brmdoor_libnfc.git
synced 2025-06-07 16:14:01 +02:00
Change tabs to 4 spaces in python files
This commit is contained in:
parent
5d41737f80
commit
2482462a73
6 changed files with 420 additions and 420 deletions
|
@ -10,23 +10,23 @@ import sys
|
|||
import sqlite3
|
||||
|
||||
if __name__ == "__main__":
|
||||
if len(sys.argv) < 2:
|
||||
print >> sys.stderr, "You must specify filename as arg1 where the DB is to be created"
|
||||
|
||||
filename = sys.argv[1]
|
||||
conn = sqlite3.connect(filename)
|
||||
cursor = conn.cursor()
|
||||
|
||||
cursor.execute("""CREATE TABLE authorized_uids(
|
||||
id INTEGER PRIMARY KEY AUTOINCREMENT,
|
||||
uid_hex TEXT,
|
||||
nick TEXT)
|
||||
""")
|
||||
cursor.execute("""CREATE TABLE authorized_hmac_keys(
|
||||
id INTEGER PRIMARY KEY AUTOINCREMENT,
|
||||
uid_hex TEXT,
|
||||
key_hex TEXT,
|
||||
nick TEXT)
|
||||
""")
|
||||
conn.commit()
|
||||
conn.close()
|
||||
if len(sys.argv) < 2:
|
||||
print >> sys.stderr, "You must specify filename as arg1 where the DB is to be created"
|
||||
|
||||
filename = sys.argv[1]
|
||||
conn = sqlite3.connect(filename)
|
||||
cursor = conn.cursor()
|
||||
|
||||
cursor.execute("""CREATE TABLE authorized_uids(
|
||||
id INTEGER PRIMARY KEY AUTOINCREMENT,
|
||||
uid_hex TEXT,
|
||||
nick TEXT)
|
||||
""")
|
||||
cursor.execute("""CREATE TABLE authorized_hmac_keys(
|
||||
id INTEGER PRIMARY KEY AUTOINCREMENT,
|
||||
uid_hex TEXT,
|
||||
key_hex TEXT,
|
||||
nick TEXT)
|
||||
""")
|
||||
conn.commit()
|
||||
conn.close()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue