| Conditions | 3 |
| Total Lines | 18 |
| Code Lines | 15 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | #!/usr/bin/env python |
||
| 44 | def assemble_score(score_year, score_term, score_data): |
||
| 45 | articles = [{
|
||
| 46 | 'title': '期末成绩单', |
||
| 47 | 'description': '【第%s学年第%s学期】' % (score_year, score_term) |
||
| 48 | }] |
||
| 49 | for n, c in enumerate(score_data): |
||
| 50 | if n > 5: |
||
| 51 | break |
||
| 52 | print(c) |
||
| 53 | articles.append({
|
||
| 54 | 'title': "课程:%s\n学分:%s 成绩:%s" % (c['lesson_name'], c['credit'], c['score']), |
||
| 55 | }) |
||
| 56 | articles.append({
|
||
| 57 | 'title': '点击这里:查看完整成绩', |
||
| 58 | 'description': '', |
||
| 59 | 'url': '' |
||
| 60 | }) |
||
| 61 | return articles |
||
| 62 |