Index: branches/ariel/xmldumps-backup/worker.py |
— | — | @@ -65,7 +65,7 @@ |
66 | 66 | |
67 | 67 | if (self._revsPerChunkHistory): |
68 | 68 | if (len(self._revsPerChunkHistory) == 1): |
69 | | - self._numChunksHistory = self.getNumberOfChunksForXMLDumps(totalEdits, self._pagesPerChunkHistory) |
| 69 | + self._numChunksHistory = self.getNumberOfChunksForXMLDumps(self.Stats.totalEdits, self._pagesPerChunkHistory[0]) |
70 | 70 | self._revsPerChunkHistory = [ self._revsPerChunkHistory[0] for i in range(self._numChunksHistory)] |
71 | 71 | else: |
72 | 72 | self._numChunksHistory = len(self._revsPerChunkHistory) |
— | — | @@ -74,7 +74,7 @@ |
75 | 75 | # self._pagesPerChunkHistory = .... |
76 | 76 | elif (self._pagesPerChunkHistory): |
77 | 77 | if (len(self._pagesPerChunkHistory) == 1): |
78 | | - self._numChunksHistory = self.getNumberOfChunksForXMLDumps(totalPages, self._pagesPerChunkHistory) |
| 78 | + self._numChunksHistory = self.getNumberOfChunksForXMLDumps(self.Stats.totalPages, self._pagesPerChunkHistory[0]) |
79 | 79 | self._pagesPerChunkHistory = [ self._pagesPerChunkHistory[0] for i in range(self._numChunksHistory)] |
80 | 80 | else: |
81 | 81 | self._numChunksHistory = len(self._pagesPerChunkHistory) |
— | — | @@ -83,7 +83,7 @@ |
84 | 84 | |
85 | 85 | if (self._pagesPerChunkAbstract): |
86 | 86 | if (len(self._pagesPerChunkAbstract) == 1): |
87 | | - self._numChunksAbstract = self.getNumberOfChunksForXMLDumps(totalPages, self._pagesPerChunkAbstract) |
| 87 | + self._numChunksAbstract = self.getNumberOfChunksForXMLDumps(self.Stats.totalPages, self._pagesPerChunkAbstract[0]) |
88 | 88 | self._pagesPerChunkAbstract = [ self._pagesPerChunkAbstract[0] for i in range(self._numChunksAbstract)] |
89 | 89 | else: |
90 | 90 | self._numChunksAbstract = len(self._pagesPerChunkAbstract) |
— | — | @@ -135,7 +135,7 @@ |
136 | 136 | self.totalEdits = None |
137 | 137 | self.config = wiki.config |
138 | 138 | self.dbName = dbName |
139 | | - (totalPages, totalEdits) = self.getStatistics(config,dbName) |
| 139 | + (self.totalPages, totalEdits) = self.getStatistics(config,dbName) |
140 | 140 | |
141 | 141 | def getStatistics(self, config,dbName): |
142 | 142 | """Get (cached) statistics for the wiki""" |