Skip to content

Commit ea28a4c

Browse files
Fix SpoolExporter with hidden users
1 parent a9955d9 commit ea28a4c

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

cmscontrib/SpoolExporter.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
# Contest Management System - http://cms-dev.github.io/
55
# Copyright © 2010-2012 Giovanni Mascellani <mascellani@poisson.phc.unipi.it>
6-
# Copyright © 2010-2014 Stefano Maggiolo <s.maggiolo@gmail.com>
6+
# Copyright © 2010-2015 Stefano Maggiolo <s.maggiolo@gmail.com>
77
# Copyright © 2010-2012 Matteo Boscariol <boscarim@hotmail.com>
88
#
99
# This program is free software: you can redistribute it and/or modify
@@ -194,6 +194,8 @@ def export_ranking(self):
194194
is_partial = False
195195
for task in self.contest.tasks:
196196
for user in self.contest.users:
197+
if user.hidden:
198+
continue
197199
score, partial = task_score(user, task)
198200
is_partial = is_partial or partial
199201
task_scores[task.id][user.username] = score

0 commit comments

Comments
 (0)