maringetxway commited on
Commit
2953c48
Β·
verified Β·
1 Parent(s): 3f11d6a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +21 -4
app.py CHANGED
@@ -72,12 +72,12 @@ def submit_profile(name, discord, city, country, address, looking, onlinecheck,
72
  "Country": country,
73
  "Address": address,
74
  "Looking for Team": looking,
75
- "How?": onlinecheck,
76
  "Languages": languages,
77
  "Laptop": laptop,
78
  "Robot": robot,
79
  "Skills": skills,
80
- "Description": describe3,
81
  "Experience": experience,
82
  "Project Idea": idea
83
  })
@@ -90,12 +90,12 @@ def submit_profile(name, discord, city, country, address, looking, onlinecheck,
90
  "Country": country,
91
  "Address": address,
92
  "Looking for Team": looking,
93
- "How?": onlinecheck,
94
  "Languages": languages,
95
  "Laptop": laptop,
96
  "Robot": robot,
97
  "Skills": skills,
98
- "Description": describe3,
99
  "Experience": experience,
100
  "Project Idea": idea
101
  })
@@ -143,6 +143,23 @@ def filter_by_fields(selected_country, selected_city, selected_language):
143
  if df.empty:
144
  return "<p>No participants match your filters.</p>"
145
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
146
  html = '<h3 style="margin-top:20px;">πŸ” Find your matching Teammates & Register your team <a href="https://forms.gle/gJEMGD4CEA2emhD18" target="_blank">here</a>πŸ‘ˆπŸ‘ˆ</h3>'
147
  html += "<table style='width:100%; border-collapse: collapse;'>"
148
 
 
72
  "Country": country,
73
  "Address": address,
74
  "Looking for Team": looking,
75
+ "Onlinecheck": onlinecheck,
76
  "Languages": languages,
77
  "Laptop": laptop,
78
  "Robot": robot,
79
  "Skills": skills,
80
+ "Describe3": describe3,
81
  "Experience": experience,
82
  "Project Idea": idea
83
  })
 
90
  "Country": country,
91
  "Address": address,
92
  "Looking for Team": looking,
93
+ "Onlinecheck": onlinecheck,
94
  "Languages": languages,
95
  "Laptop": laptop,
96
  "Robot": robot,
97
  "Skills": skills,
98
+ "Describe3": describe3,
99
  "Experience": experience,
100
  "Project Idea": idea
101
  })
 
143
  if df.empty:
144
  return "<p>No participants match your filters.</p>"
145
 
146
+ # Rename column headers for display only
147
+ display_names = {
148
+ "Discord": "Discord",
149
+ "Name": "Name",
150
+ "City": "City",
151
+ "Country": "Country",
152
+ "Looking for Team": "Looking for Team",
153
+ "Onlinecheck": "How?",
154
+ "Languages": "Languages",
155
+ "Laptop": "Laptop",
156
+ "Robot": "Robot",
157
+ "Skills": "Skills",
158
+ "Describe3": "Description",
159
+ "Experience": "Experience",
160
+ "Project Idea": "Project Idea"
161
+ }
162
+
163
  html = '<h3 style="margin-top:20px;">πŸ” Find your matching Teammates & Register your team <a href="https://forms.gle/gJEMGD4CEA2emhD18" target="_blank">here</a>πŸ‘ˆπŸ‘ˆ</h3>'
164
  html += "<table style='width:100%; border-collapse: collapse;'>"
165