~azzar1/unity/add-show-desktop-key

« back to all changes in this revision

Viewing changes to ivle/webapp/tutorial/marks.py

  • Committer: Matt Giuca
  • Date: 2010-02-24 13:31:22 UTC
  • Revision ID: matt.giuca@gmail.com-20100224133122-wk6am96vhsdwjrfs
tutorial.marks: CSV output no longer writes 'N/A' in certain fields. Just outputs the empty string.

Show diffs side-by-side

added added

removed removed

Lines of Context:
159
159
    will be part of the output for this user.
160
160
    (This is not marks, it's other user data).
161
161
    """
162
 
    last_login = ("N/A" if user.last_login is None else
 
162
    last_login = ("" if user.last_login is None else
163
163
                    user.last_login.strftime("%Y-%m-%d"))
164
 
    return [user.studentid or "N/A", user.login, user.fullname, last_login]
 
164
    return [user.studentid or "", user.login, user.fullname, last_login]
165
165
 
166
166
csv_userdata_header = ["Student ID", "Login", "Full name", "Last login"]
167
167
def csv_get_header(worksheets):