Compare commits

..

2 Commits

Author SHA1 Message Date
Yapollon
70c9a3fbdf Merge branch 'master' of https://repo.cimeyclust.com/CimeyClust/HabitTracker 2024-01-17 11:01:10 +01:00
Yapollon
809a6b2d4b added test data 2024-01-17 11:00:59 +01:00
7 changed files with 13 additions and 1 deletions

View 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');

View 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');

View 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');

View 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');

View 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');

View 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');

View File

@ -34,4 +34,4 @@ class Habit:
for habit in raw_habits:
habit = Habit(habit[0], habit[1], habit[2], habit[3], habit[4], habit[5], habit[6])
habits.append(habit)
return habits if habits else None
return habits if habits else None