Changeset 9bb40d in indico
- Timestamp:
- 03/16/11 09:08:08 (2 years ago)
- Branches:
- master, burotel, hello-world-walkthrough, ipv6, v0.98-series, v0.98.2, v0.98.3, v0.98b1, v0.98b2, v0.99, 051b2622c51afb171a1dedb46a0df4fbb0cbd02e, d9941f8582b36b24821a11ea5ba16fda6a457fb1
- Children:
- 9abde2
- Parents:
- 23945f
- File:
-
- 1 edited
-
indico/MaKaC/statistics.py (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
indico/MaKaC/statistics.py
r078f40 r9bb40d 93 93 def _updateStatistics(cls, cat, dbi, level=0, logger=None): 94 94 95 ncat = 096 95 statistics = cat.getStatistics() 97 96 statistics["events"] = {} … … 102 101 for cat in cat.getSubCategoryList(): 103 102 cat._p_changed = 1 103 104 # only at top level 105 if level == 0 and logger: 106 logger.info("Processing '%s' (%s)" % (cat.getTitle(), 107 cat.getId())) 108 104 109 cls._updateStatistics(cat, dbi, level + 1, logger) 105 110 # commit after each category … … 118 123 statistics["resources"] += cat._statistics["resources"] 119 124 120 ncat += 1121 122 # only at top level123 if level == 0:124 # notify each 100 categories:125 if logger and ncat > 0 and ncat % 100 == 0:126 logger.info("%d categories already processed" % ncat)127 128 125 elif len(cat.getConferenceList()) > 0: 129 126 for event in cat.getConferenceList():
Note: See TracChangeset
for help on using the changeset viewer.
