]> www.wagner.pp.ru Git - oss/ljdump.git/blobdiff - convertdump.py
Accepted patch from Carl Johan Crafoord <mail@carljohancrafoord.se>
[oss/ljdump.git] / convertdump.py
index 106b274d796e8d918882249d95f4b2ea2de18686..a81b596a22b505f78f2e2e5db0fe28a36e444225 100755 (executable)
@@ -169,7 +169,6 @@ def main(argv):
     ljElement = outDoc.createElement("livejournal")
     outDoc.appendChild(ljElement)
 
-    entryLimit = 250
     currentFileEntry = 0
 
     # start processing entries
@@ -178,7 +177,7 @@ def main(argv):
 
         currentFileEntry += 1
 
-        if( currentFileEntry == entryLimit ):
+        if( currentFileEntry == entryLimit or entry == entryArray[-1] ):
 
             f = open("%s - %s.xml" % (username, entry), "w")
             tempXML = outDoc.toxml("UTF-8")