Browse Source

Convert Wikicode objects correctly.

pull/15/head
Ben Kurtovic 11 years ago
parent
commit
9afbf21939
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      tasks/afc_statistics.py

+ 2
- 1
tasks/afc_statistics.py View File

@@ -644,7 +644,8 @@ class AFCStatistics(Task):
if tmpl.name.strip().lower() == "afc submission":
if all([tmpl.has(par, ignore_empty=True) for par in params]):
if status in statuses:
submits.append([tmpl.get(par).value for par in params])
data = [unicode(tmpl.get(par).value) for par in params]
submits.append(data)
if not submits:
return None
latest = max(submits, key=lambda pair: pair[1])


Loading…
Cancel
Save