Skip to content

Commit a2ba488

Browse files
author
Ilia Shcheglov
committed
Added read from last day table
1 parent 4b78be1 commit a2ba488

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

create_db.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,15 +15,15 @@
1515
temperature REAL NOT NULL,
1616
humidity REAL NOT NULL
1717
);
18-
18+
''')
19+
cursor.execute('''
1920
CREATE TABLE IF NOT EXISTS last_day_sensor_data (
2021
id INTEGER PRIMARY KEY AUTOINCREMENT,
2122
date TEXT NOT NULL,
2223
co2 INTEGER NOT NULL,
2324
temperature REAL NOT NULL,
2425
humidity REAL NOT NULL
2526
);
26-
2727
''')
2828
conn.commit()
2929
conn.close()

0 commit comments

Comments
 (0)