Fixed code style in db schema definitions.

This commit is contained in:
s3lph 2018-07-21 21:46:46 +02:00
parent ce0a01cb7c
commit 9afd86d5ab

View file

@ -1,11 +1,9 @@
from typing import Dict, List from typing import Dict, List
SCHEMAS: Dict[int, List[str]] = dict() SCHEMAS: Dict[int, List[str]] = dict()
SCHEMAS[1] = [
SCHEMAS[1] = [''' '''
CREATE TABLE users ( CREATE TABLE users (
user_id INTEGER PRIMARY KEY, user_id INTEGER PRIMARY KEY,
username TEXT UNIQUE NOT NULL, username TEXT UNIQUE NOT NULL,
@ -40,8 +38,8 @@ CREATE TABLE consumption (
); );
'''] ''']
SCHEMAS[2] = [
SCHEMAS[2] = [''' '''
CREATE TABLE users ( CREATE TABLE users (
user_id INTEGER PRIMARY KEY, user_id INTEGER PRIMARY KEY,
username TEXT UNIQUE NOT NULL, username TEXT UNIQUE NOT NULL,