-
Notifications
You must be signed in to change notification settings - Fork 107
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #44 from robmarkcole/black-format
isort then black
- Loading branch information
Showing
33 changed files
with
2,231 additions
and
1,143 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,14 @@ | ||
import sqlite3 | ||
from sqlite3 import Cursor,Error | ||
import os | ||
import sqlite3 | ||
from sqlite3 import Cursor, Error | ||
|
||
DATA_DIR = "/datastore" | ||
|
||
CREATE_TABLE = "CREATE TABLE IF NOT EXISTS TB_EMBEDDINGS(userid TEXT PRIMARY KEY, embedding TEXT NOT NULL)" | ||
CREATE_TABLE2 = "CREATE TABLE IF NOT EXISTS TB_EMBEDDINGS2(userid TEXT PRIMARY KEY, embedding TEXT NOT NULL)" | ||
conn = sqlite3.connect(DATA_DIR+"/faceembedding.db") | ||
conn = sqlite3.connect(DATA_DIR + "/faceembedding.db") | ||
cursor = conn.cursor() | ||
cursor.execute(CREATE_TABLE) | ||
cursor.execute(CREATE_TABLE2) | ||
conn.commit() | ||
conn.close() | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.