mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-23 11:09:23 +01:00
Fixed bugz0rs in URL, added vacuum (called on stats).
This commit is contained in:
parent
893727f962
commit
c83c8c3ec3
@ -153,7 +153,6 @@ class URLDB(object):
|
|||||||
out = file(filename, 'w')
|
out = file(filename, 'w')
|
||||||
notAdded = 0
|
notAdded = 0
|
||||||
urls = self.getUrlsAndNicks(lambda *args: True)
|
urls = self.getUrlsAndNicks(lambda *args: True)
|
||||||
urls.reverse()
|
|
||||||
seen = sets.Set()
|
seen = sets.Set()
|
||||||
for (i, (url, nick)) in enumerate(urls):
|
for (i, (url, nick)) in enumerate(urls):
|
||||||
if url not in seen:
|
if url not in seen:
|
||||||
@ -161,6 +160,7 @@ class URLDB(object):
|
|||||||
else:
|
else:
|
||||||
urls[i] = None
|
urls[i] = None
|
||||||
notAdded += 1
|
notAdded += 1
|
||||||
|
urls.reverse()
|
||||||
for urlNick in urls:
|
for urlNick in urls:
|
||||||
if urlNick is not None:
|
if urlNick is not None:
|
||||||
out.write(self._formatRecord(*urlNick))
|
out.write(self._formatRecord(*urlNick))
|
||||||
|
Loading…
Reference in New Issue
Block a user