Compare commits
2 Commits
43cc847008
...
70c9a3fbdf
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
70c9a3fbdf | ||
|
|
809a6b2d4b |
2
db/migrations/1705484167_create_test_data.sql
Normal file
2
db/migrations/1705484167_create_test_data.sql
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
INSERT INTO users (name, email, password, created_at, updated_at)
|
||||||
|
VALUES ('Jan Blodhein', 'dubistdumm@icloud.com', 'a36c101570cc4410993de5385ad7034adb2dae6a05139ac7672577803084634d', '23:00', '23:00');
|
||||||
2
db/migrations/1705485233_create_test_data.sql
Normal file
2
db/migrations/1705485233_create_test_data.sql
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
INSERT INTO users (name, email, password, created_at, updated_at)
|
||||||
|
VALUES ('Nikolaus MikeyMouse', 'Nordpol@icloud.com', 'a36c101570cc4410993de5385ad7034adb2dae6a05139ac7672577803084634d', '23:00', '23:00');
|
||||||
2
db/migrations/1705485243_create_test_data.sql
Normal file
2
db/migrations/1705485243_create_test_data.sql
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
INSERT INTO habits (user_id, name, note, times, unit, slot, created_at, updated_at)
|
||||||
|
VALUES ('1', 'Sport', '10x Liegestutze', '1', '1', '1', '23:00', '23:00');
|
||||||
2
db/migrations/1705485247_create_test_data.sql
Normal file
2
db/migrations/1705485247_create_test_data.sql
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
INSERT INTO habits (user_id, name, note, times, unit, slot, created_at, updated_at)
|
||||||
|
VALUES ('1', 'Sport', '10x Klimmzuge', '1', '1', '3', '23:00', '23:00');
|
||||||
2
db/migrations/1705485251_create_test_data.sql
Normal file
2
db/migrations/1705485251_create_test_data.sql
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
INSERT INTO habits (user_id, name, note, times, unit, slot, created_at, updated_at)
|
||||||
|
VALUES ('1', 'Essen', '1x Gemüse', '1', '2', '2', '23:00', '23:00');
|
||||||
2
db/migrations/1705485255_create_test_data.sql
Normal file
2
db/migrations/1705485255_create_test_data.sql
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
INSERT INTO habits (user_id, name, note, times, unit, slot, created_at, updated_at)
|
||||||
|
VALUES ('2', 'Sport', '10x Liegestutze', '1', '1', '2', '23:00', '23:00');
|
||||||
@ -34,4 +34,4 @@ class Habit:
|
|||||||
for habit in raw_habits:
|
for habit in raw_habits:
|
||||||
habit = Habit(habit[0], habit[1], habit[2], habit[3], habit[4], habit[5], habit[6])
|
habit = Habit(habit[0], habit[1], habit[2], habit[3], habit[4], habit[5], habit[6])
|
||||||
habits.append(habit)
|
habits.append(habit)
|
||||||
return habits if habits else None
|
return habits if habits else None
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user