def init_g2c_count(self): if self._counts: return curves = g2c_db_curves() counts = {} ncurves = curves.count() counts['ncurves'] = ncurves counts['ncurves_c'] = comma(ncurves) nclasses = g2c_db_isogeny_classes_count() counts['nclasses'] = nclasses counts['nclasses_c'] = comma(nclasses) max_D = curves.find().sort('abs_disc', DESCENDING).limit(1)[0]['abs_disc'] counts['max_D'] = max_D counts['max_D_c'] = comma(max_D) self._counts = counts
def init_g2c_count(self): if self._counts: return curves = g2c_db_curves() counts = {} ncurves = curves.count() counts['ncurves'] = ncurves counts['ncurves_c'] = comma(ncurves) nclasses = g2c_db_isogeny_classes_count() counts['nclasses'] = nclasses counts['nclasses_c'] = comma(nclasses) max_D = curves.find().sort('abs_disc', DESCENDING).limit(1)[0]['abs_disc'] counts['max_D'] = max_D counts['max_D_c'] = comma(max_D) self._counts = counts