Skip to content

Commit 62b794e

Browse files
committed
Merge branch 'main' of https://github.com/ericahan22/Wat2Do
2 parents 2f43425 + 211e371 commit 62b794e

File tree

5 files changed

+66
-30
lines changed

5 files changed

+66
-30
lines changed
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# Generated by Django 4.2.7 on 2025-10-19 03:14
2+
3+
from django.db import migrations
4+
5+
6+
class Migration(migrations.Migration):
7+
8+
dependencies = [
9+
("events", "0008_alter_events_raw_json_alter_events_reactions"),
10+
]
11+
12+
operations = [
13+
migrations.RemoveIndex(
14+
model_name="events",
15+
name="events_utc_sta_be5330_idx",
16+
),
17+
migrations.RemoveField(
18+
model_name="events",
19+
name="utc_end_ts",
20+
),
21+
migrations.RemoveField(
22+
model_name="events",
23+
name="utc_start_ts",
24+
),
25+
]
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# Generated by Django 4.2.7 on 2025-10-19 03:14
2+
3+
from django.db import migrations, models
4+
5+
6+
class Migration(migrations.Migration):
7+
8+
dependencies = [
9+
("events", "0009_remove_events_events_utc_sta_be5330_idx_and_more"),
10+
]
11+
12+
operations = [
13+
migrations.AddIndex(
14+
model_name="events",
15+
index=models.Index(
16+
fields=["dtstart_utc"], name="events_dtstart_89a1ed_idx"
17+
),
18+
),
19+
]

backend/apps/events/models.py

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -60,16 +60,6 @@ class Events(models.Model):
6060
help_text="'America/New_York'"
6161
)
6262

63-
# Canonical UTC timestamps for consistent querying
64-
utc_start_ts = models.DateTimeField(
65-
null=True, blank=True,
66-
help_text="'2024-03-20T14:00:00Z'"
67-
)
68-
utc_end_ts = models.DateTimeField(
69-
null=True, blank=True,
70-
help_text="'2024-03-20T22:00:00Z'"
71-
)
72-
7363
# Recurrence rules (iCalendar RFC 5545)
7464
rrule = models.TextField(
7565
null=True, blank=True,
@@ -169,7 +159,7 @@ class Events(models.Model):
169159
class Meta:
170160
db_table = 'events'
171161
indexes = [
172-
models.Index(fields=['utc_start_ts']),
162+
models.Index(fields=['dtstart_utc']),
173163
]
174164

175165
def __str__(self):

backend/config/settings/base.py

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,13 @@
6767
"django.middleware.clickjacking.XFrameOptionsMiddleware",
6868
]
6969

70+
SECURE_SSL_REDIRECT = True
71+
72+
# A list of regular expressions that URLs must match to be exempt from SSL redirection
73+
SECURE_REDIRECT_EXEMPT = [
74+
r'^health/?$', # This will match /health or /health/
75+
]
76+
7077
# CORS settings
7178
CORS_ALLOW_ALL_ORIGINS = True # For development only
7279
CORS_ALLOW_CREDENTIALS = True
@@ -91,12 +98,6 @@
9198

9299
WSGI_APPLICATION = "config.wsgi.app"
93100

94-
SECURE_PROXY_SSL_HEADER = ('HTTP_X_FORWARDED_PROTO', 'https')
95-
96-
SECURE_REDIRECT_EXEMPT = [
97-
r'^health/$',
98-
]
99-
100101
# Database
101102
# https://docs.djangoproject.com/en/4.2/ref/settings/#databases
102103
if os.getenv("PRODUCTION") == "1":

frontend/src/data/staticData.ts

Lines changed: 14 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { Event } from "@/features/events/types/events";
22

3-
export const LAST_UPDATED = "2025-10-19T03:26:06.148036+00:00";
3+
export const LAST_UPDATED = "2025-10-19T03:31:39.115412+00:00";
44

55
export const staticEventsData: Event[] = [
66
{
@@ -53,25 +53,26 @@ export const RECOMMENDED_FILTERS: string[] = [
5353
"networking",
5454
"brunch",
5555
"dinner",
56+
"WUSA",
5657
"social event",
5758
"student meetup",
58-
"WUSA",
59-
"professional development",
6059
"food event",
60+
"professional development",
6161
"community gathering",
6262
"large event",
63-
"meet new people",
64-
"club activities",
63+
"Brampton",
64+
"Cambridge",
6565
"student organizations",
66-
"cultural event",
67-
"informal networking",
66+
"meet new people",
6867
"career networking",
6968
"food and drinks",
70-
"student engagement",
69+
"event planning",
70+
"student activities",
7171
"local events",
72-
"peer connection",
73-
"event series",
74-
"interactive activities",
75-
"fun activities",
76-
"student life"
72+
"club events",
73+
"peer connections",
74+
"informal gathering",
75+
"student engagement",
76+
"cultural exchange",
77+
"team building"
7778
];

0 commit comments

Comments
 (0)