From 35c4a69bf43008065cbe2c0e7d3c36ab635cacdf Mon Sep 17 00:00:00 2001
From: Matthew Hague <matthew.hague@rhul.ac.uk>
Date: Thu, 28 Sep 2023 10:29:48 +0100
Subject: [PATCH] Add description to programme info

---
 ldap/rhul-programme-info.py | 9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)

diff --git a/ldap/rhul-programme-info.py b/ldap/rhul-programme-info.py
index 8f68c54..a6a9fa6 100755
--- a/ldap/rhul-programme-info.py
+++ b/ldap/rhul-programme-info.py
@@ -74,11 +74,13 @@ password = subprocess.check_output(PASS_CMD, stderr=subprocess.DEVNULL) \
 
 entries = []
 student_attrs = [
-    "displayName", "mail", "extensionAttribute2", "extensionAttribute3"
+    "displayName", "mail", "extensionAttribute2", "extensionAttribute3",
+    "description"
 ]
 writer = csv.writer(sys.stdout)
 writer.writerow([
-    "prog_code", "prog_title", "count", "name", "id", "email", "login"
+    "prog_code", "prog_title", "count", "name", "id", "email", "login",
+    "description"
 ])
 
 with ldap3.Connection(URI,
@@ -106,6 +108,7 @@ with ldap3.Connection(URI,
                     student.displayName,
                     student.extensionAttribute3,
                     student.mail,
-                    student.extensionAttribute2
+                    student.extensionAttribute2,
+                    student.description
                 ])
 
-- 
GitLab