Changeset 13932 for main/waeup.kofa/branches/uli-scores-upload/src
- Timestamp:
- 13 Jun 2016, 20:57:13 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/branches/uli-scores-upload/src/waeup/kofa/students/browser.py
r13931 r13932 3106 3106 3107 3107 The mapping is constructed by reading contents from `uploadfile`. 3108 3109 We expect uploadfile to be a regular CSV file with columns 3110 ``student_id`` and ``score`` (other cols are ignored). 3108 3111 """ 3112 result = dict() 3109 3113 data = StringIO(uploadfile.read()) # ensure we have something seekable 3110 3114 reader = csv.DictReader(data) 3111 result = dict()3112 3115 for row in reader: 3113 3116 if not 'student_id' in row or not 'score' in row:
Note: See TracChangeset for help on using the changeset viewer.