Skip to content

Commit fefd38d

Browse files
committed
yeah, it looks like somehow i didn't complete the merge before pushing. now also ignoring sqlite
1 parent 98130d1 commit fefd38d

File tree

6 files changed

+2
-65
lines changed

6 files changed

+2
-65
lines changed

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -273,4 +273,5 @@ mailpit
273273
thoughtswap/media/
274274

275275
.pytest_cache/
276-
.env
276+
.env
277+
*.sqlite3

local.sqlite3

-308 KB
Binary file not shown.

requirements/base.txt

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,5 @@ crispy-bootstrap5==2024.10 # https://github.com/django-crispy-forms/crispy-boot
1717
django-redis==5.4.0 # https://github.com/jazzband/django-redis
1818
PyJWT==2.10.1 # https://docs.allauth.org/en/dev/installation/requirements.html
1919
channels==4.2.0 # in order ot use django channels for the in-class communication
20-
<<<<<<< HEAD
21-
daphne==4.1.2 # in order ot use django channels for the in-class communication
22-
=======
2320
daphne==4.1.2 # in order ot use django channels for the in-class communication
2421
channels-redis==4.2.1
25-
>>>>>>> 06c019e81daa0338677ab2300c11b559078586dd

thoughtswap/thoughtswap/migrations/0003_seed_example_model_instances_20250324_0943.py

Lines changed: 0 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,6 @@ def seed_mvp(apps, schema_editor):
1818
teacher = User.objects.create_user(
1919
username="teacher",
2020
21-
<<<<<<< HEAD
22-
password=make_password("teacher"),
23-
=======
2421
password="teacher",
2522
)
2623
teacher.first_name = "Teacher"
@@ -32,20 +29,13 @@ def seed_mvp(apps, schema_editor):
3229
username="teacher2",
3330
3431
password="teacher",
35-
>>>>>>> 06c019e81daa0338677ab2300c11b559078586dd
3632
)
3733
teacher.first_name = "Teacher"
3834
teacher.last_name = "User"
3935
teacher.save()
4036

4137
# create a course
4238
course = Course.objects.create(
43-
<<<<<<< HEAD
44-
title="Example Course",
45-
creator=teacher,
46-
)
47-
48-
=======
4939
title="Example Course CS 455",
5040
creator=teacher,
5141
)
@@ -55,60 +45,40 @@ def seed_mvp(apps, schema_editor):
5545
creator=teacher2,
5646
)
5747

58-
>>>>>>> 06c019e81daa0338677ab2300c11b559078586dd
5948
# enroll the teacher in the course
6049
Enrollment.objects.create(
6150
user=teacher,
6251
course=course,
6352
role="f",
6453
)
6554

66-
<<<<<<< HEAD
67-
=======
6855
# enroll the teacher2 in the course
6956
Enrollment.objects.create(
7057
user=teacher2,
7158
course=course2,
7259
role="f",
7360
)
7461

75-
>>>>>>> 06c019e81daa0338677ab2300c11b559078586dd
7662
# create a student
7763
student1 = User.objects.create_user(
7864
username="student1",
7965
80-
<<<<<<< HEAD
81-
password=make_password("student"),
82-
)
83-
student1.first_name = "Student1"
84-
student1.last_name = "User"
85-
student1.save()
86-
=======
8766
password="student",
8867
)
8968
# student1.first_name = "Student1"
9069
# student1.last_name = "User"
9170
# student1.save()
92-
>>>>>>> 06c019e81daa0338677ab2300c11b559078586dd
9371

9472
student2 = User.objects.create_user(
9573
username="student2",
9674
97-
<<<<<<< HEAD
98-
password=make_password("student"),
99-
)
100-
student2.first_name = "Student2"
101-
student2.last_name = "User"
102-
student2.save()
103-
=======
10475
password="student",
10576
# first_name = "Student2",
10677
# last_name = "User"
10778
)
10879
# student2.first_name = "Student2"
10980
# student2.last_name = "User"
11081
# student2.save()
111-
>>>>>>> 06c019e81daa0338677ab2300c11b559078586dd
11282

11383
Enrollment.objects.create(
11484
user=student1,

thoughtswap/thoughtswap/models.py

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,7 @@ class Course(models.Model):
2222
updated_at = models.DateTimeField(auto_now=True)
2323

2424
def __str__(self):
25-
<<<<<<< HEAD
26-
return self.name
27-
=======
2825
return self.title
29-
>>>>>>> 06c019e81daa0338677ab2300c11b559078586dd
3026

3127

3228
# since the coockiecutter-django starter code has groups and permissions to go
@@ -65,13 +61,9 @@ def __str__(self):
6561

6662

6763
class Session(models.Model):
68-
<<<<<<< HEAD
69-
course = models.ForeignKey(Course, on_delete=models.CASCADE)
70-
=======
7164
course = models.ForeignKey(
7265
Course, on_delete=models.CASCADE, related_name="sessions"
7366
)
74-
>>>>>>> 06c019e81daa0338677ab2300c11b559078586dd
7567

7668
SESSION_STATE = (
7769
("a", "Active"),
@@ -82,43 +74,28 @@ class Session(models.Model):
8274
state = models.CharField(
8375
max_length=1,
8476
choices=SESSION_STATE,
85-
<<<<<<< HEAD
86-
default="d",
87-
help_text="Session state",
88-
)
89-
90-
=======
9177
default="a",
9278
help_text="Session state",
9379
)
9480

9581
is_swapping = models.BooleanField(default=False)
9682

97-
98-
>>>>>>> 06c019e81daa0338677ab2300c11b559078586dd
9983
begin = models.DateTimeField(blank=True, null=True)
10084
end = models.DateTimeField(blank=True, null=True)
10185
created_at = models.DateTimeField(auto_now_add=True)
10286
updated_at = models.DateTimeField(auto_now=True)
10387

104-
<<<<<<< HEAD
105-
=======
10688
def __str__(self):
10789
return f"{self.state}"
10890

109-
>>>>>>> 06c019e81daa0338677ab2300c11b559078586dd
110-
11191
# 2 use cases:
11292
# 1. prof wants to use this prompt in class tmr, so make it (the Prompt) today so they can just click it in realtime tmr (which would then instantiate the PromptUse). to be fully motivating we actually have to imagine they have 2 prompts in mind for tmr
11393
# 2. prof wants to use the prompt at the beginning of sem and then again at the end
11494
class PromptUse(models.Model):
11595
prompt = models.ForeignKey(Prompt, on_delete=models.CASCADE)
11696
# our docs show begin and end fields, but we don't remember why
11797
session = models.ForeignKey(Session, on_delete=models.CASCADE)
118-
<<<<<<< HEAD
119-
=======
12098
is_active = models.BooleanField(default=False)
121-
>>>>>>> 06c019e81daa0338677ab2300c11b559078586dd
12299
created_at = models.DateTimeField(auto_now_add=True)
123100
updated_at = models.DateTimeField(auto_now=True)
124101

thoughtswap/thoughtswap/views.py

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,3 @@
1-
<<<<<<< HEAD
2-
from django.shortcuts import render
3-
4-
# Create your views here.
5-
=======
61
from django.shortcuts import render, redirect, get_object_or_404
72
from thoughtswap.users.models import User
83
from .models import Enrollment, Prompt, Course, Session
@@ -152,5 +147,3 @@ def thoughtswap_room(request, join_code):
152147
},
153148
)
154149

155-
156-
>>>>>>> 06c019e81daa0338677ab2300c11b559078586dd

0 commit comments

Comments
 (0)