示例#1
0
 def update_rankings(self):
     for descr, func in utils.pbar(self.scalars_author,
                                   "UPDATING RANKINGS"):
         value = self.source_counter(counters.author(self.pages, func))
         self.post("ranking:" + descr, round(value, 2))
示例#2
0
 def update_users(self):
     """Update the stats wiki with the author stats."""
     users = {p.author for p in self.pages}
     for user in utils.pbar(users, "UPDATING USER STATS"):
         self.post("user:" + user, self.source_author(user))
示例#3
0
 def update_rankings(self):
     for descr, func in utils.pbar(self.scalars_author,
                                   'ACTUALIZANDO POSICIÓN'):
         value = self.source_counter(counters.author(self.pages, func))
         self.post('posición:' + descr, round(value, 2))
示例#4
0
 def update_users(self):
     """Actualiza las estadísticas de la wiki con las estadísticas de los autores."""
     users = {p.author for p in self.pages}
     for user in utils.pbar(users, 'ACTUALIZANDO ESTADISTICAS DE USUARIOS'):
         self.post('usuario:' + user, self.source_author(user))
示例#5
0
文件: updater.py 项目: anqxyr/pyscp
 def update_rankings(self):
     for descr, func in utils.pbar(
             self.scalars_author, 'UPDATING RANKINGS'):
         value = self.source_counter(counters.author(self.pages, func))
         self.post('ranking:' + descr, round(value, 2))
示例#6
0
文件: updater.py 项目: anqxyr/pyscp
 def update_users(self):
     """Update the stats wiki with the author stats."""
     users = {p.author for p in self.pages}
     for user in utils.pbar(users, 'UPDATING USER STATS'):
         self.post('user:' + user, self.source_author(user))