Changeset 16856 for main/waeup.uniben


Ignore:
Timestamp:
3 Mar 2022, 09:00:10 (3 years ago)
Author:
Henrik Bettermann
Message:

Filter FLC applicants.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.uniben/trunk/src/waeup/uniben/applicants/export.py

    r16855 r16856  
    8989        'password', 'state', 'history', 'container_code', 'application_number',
    9090        'display_fullname', 'application_date')
     91
     92    def export(self, applicants, filepath=None):
     93        """Exports flc applicants only
     94        """
     95        writer, outfile = self.get_csv_writer(filepath)
     96        for applicant in applicants:
     97            if applicant.__parent__.code.startswith('flc'):
     98                self.write_item(applicant, writer)
     99        return self.close_outfile(filepath, outfile)
Note: See TracChangeset for help on using the changeset viewer.