Changeset 5123


Ignore:
Timestamp:
5 Apr 2010, 12:46:06 (15 years ago)
Author:
uli
Message:

When archiving, we don't need to format the student_id.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.sirp/trunk/src/waeup/sirp/accesscodes/accesscodes.py

    r5121 r5123  
    187187        for value in self._entries:
    188188            date = ''
    189             stud_id = ''
    190189            if value.invalidation_date is not None:
    191190                date = value.invalidation_date.strftime(
    192191                    '%Y-%m-%d-%H-%M-%S')
    193             if stud_id is not None:
    194                 stud_id = value.student_id
    195192            writer.writerow([
    196193                    self.prefix, value.batch_serial, value.representation,
    197                     stud_id, date
     194                    value.student_id, date
    198195                    ])
    199196        return os.path.basename(csv_path)
Note: See TracChangeset for help on using the changeset viewer.