We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 01df3a4 commit 14ac260Copy full SHA for 14ac260
mpeds_coder.py
@@ -22,6 +22,11 @@
22
from math import ceil
23
from random import sample, choice
24
25
+if (sys.version_info < (3, 0)):
26
+ import urllib2
27
+else:
28
+ import urllib.request
29
+
30
## pandas
31
import pandas as pd
32
import numpy as np
@@ -881,7 +886,7 @@ def admin():
881
886
jobj = json.loads(res.read())
882
887
883
888
## get every other entry in this list
884
- pubs = jobj['facet_counts']['facet_fields']['PUBLICATION'][0::2]
889
+ pubs = sorted(jobj['facet_counts']['facet_fields']['PUBLICATION'][0::2])
885
890
891
## get user stats for EC
892
for count, user in db_session.query(func.count(EventCreatorQueue.id), User.username).\
0 commit comments