Skip to content

Commit d26a15a

Browse files
committed
update generate_static_data
1 parent ba4bd47 commit d26a15a

File tree

2 files changed

+33
-1
lines changed

2 files changed

+33
-1
lines changed

backend/scraping/generate_static_data.py

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,26 @@ def main():
109109
current_time = datetime.now(timezone.utc).isoformat()
110110
f.write(f'export const LAST_UPDATED = "{current_time}";\n\n')
111111

112+
# Write event emoji categories
113+
f.write("export const EVENT_EMOJIS_CATEGORIES: [string, string, string][] = [\n")
114+
emoji_categories = [
115+
["Objects", "Graduation%20Cap", "Academic"],
116+
["Objects", "Briefcase", "Career & Networking"],
117+
["Activity", "Video%20Game", "Social & Games"],
118+
["Activity", "Soccer%20Ball", "Athletics"],
119+
["Activity", "Artist%20Palette", "Creative Arts"],
120+
["Travel%20and%20Places", "Classical%20Building", "Cultural"],
121+
["Animals%20and%20Nature", "Dove", "Religious"],
122+
["Objects", "Megaphone", "Advocacy & Causes"],
123+
["Objects", "Chart%20Increasing", "Sales & Fundraising"]
124+
]
125+
for i, (group, emoji, category) in enumerate(emoji_categories):
126+
f.write(f' ["{group}", "{emoji}", "{category}"]')
127+
if i < len(emoji_categories) - 1:
128+
f.write(",")
129+
f.write("\n")
130+
f.write("];\n\n")
131+
112132
# Write event categories
113133
f.write("export const EVENT_CATEGORIES = [\n")
114134
categories = [

frontend/src/data/staticData.ts

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,17 @@
11
export const LAST_UPDATED = "2025-11-15T16:57:42.276863+00:00";
22

3+
export const EVENT_EMOJIS_CATEGORIES: [string, string, string][] = [
4+
["Objects", "Graduation%20Cap", "Academic"],
5+
["Objects", "Briefcase", "Career & Networking"],
6+
["Activity", "Video%20Game", "Social & Games"],
7+
["Activity", "Soccer%20Ball", "Athletics"],
8+
["Activity", "Artist%20Palette", "Creative Arts"],
9+
["Travel%20and%20Places", "Classical%20Building", "Cultural"],
10+
["Animals%20and%20Nature", "Dove", "Religious"],
11+
["Objects", "Megaphone", "Advocacy & Causes"],
12+
["Objects", "Chart%20Increasing", "Sales & Fundraising"]
13+
];
14+
315
export const EVENT_CATEGORIES = [
416
"Academic",
517
"Career & Networking",
@@ -10,4 +22,4 @@ export const EVENT_CATEGORIES = [
1022
"Religious",
1123
"Advocacy & Causes",
1224
"Sales & Fundraising"
13-
];
25+
];

0 commit comments

Comments
 (0)