X-Git-Url: https://wagner.pp.ru/gitweb/?a=blobdiff_plain;f=convertdump.py;h=a81b596a22b505f78f2e2e5db0fe28a36e444225;hb=7fce5f0f25c1887325f41777daae12fcc078a99d;hp=106b274d796e8d918882249d95f4b2ea2de18686;hpb=2d9c66385fe5cc6c928ffdd1b8e21c006b3db546;p=oss%2Fljdump.git diff --git a/convertdump.py b/convertdump.py index 106b274..a81b596 100755 --- a/convertdump.py +++ b/convertdump.py @@ -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")