Skip to content

Commit 86c08bb

Browse files
mrsaicharan1iamareebjamal
authored andcommitted
feat: Additional sessions data added for CSV export (fossasia#5566)
1 parent 96fbb72 commit 86c08bb

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

app/api/helpers/csv_jobs_util.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,8 @@ def export_attendees_csv(attendees):
4747

4848
def export_sessions_csv(sessions):
4949
headers = ['Session Title', 'Session Speakers',
50-
'Session Track', 'Session Abstract', 'Created At', 'Email Sent']
50+
'Session Track', 'Session Abstract', 'Created At', 'Email Sent',
51+
'Level', 'Status', 'Session Type', 'Talk Length']
5152
rows = [headers]
5253
for session in sessions:
5354
if not session.deleted_at:
@@ -64,6 +65,10 @@ def export_sessions_csv(sessions):
6465
column.append(strip_tags(session.short_abstract) if session.short_abstract else '')
6566
column.append(session.created_at if session.created_at else '')
6667
column.append('Yes' if session.is_mail_sent else 'No')
68+
column.append(session.level)
69+
column.append(session.state)
70+
column.append(session.type)
71+
column.append(len(session.long_abstract))
6772
rows.append(column)
6873

6974
return rows

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy