]> wagner.pp.ru Git - oss/ljdump.git/commitdiff
correct total item count, add shebang line
authorgreg <greg@7994a137-d0a5-da11-ade6-0050bffea3d9>
Fri, 25 Nov 2005 20:08:20 +0000 (20:08 +0000)
committergreg <greg@7994a137-d0a5-da11-ade6-0050bffea3d9>
Fri, 25 Nov 2005 20:08:20 +0000 (20:08 +0000)
git-svn-id: file:///home/svn/ljdump/trunk@7 7994a137-d0a5-da11-ade6-0050bffea3d9

ljdump.py

index 67e185155139820523b3beeaa952d3a10b5a4560..29df3de693b9340525ade73a4aca19a0e4d2c0c7 100755 (executable)
--- a/ljdump.py
+++ b/ljdump.py
@@ -1,7 +1,8 @@
+#!/usr/bin/python
 #
 # ljdump.py - livejournal archiver
 # Greg Hewgill <greg@hewgill.com> http://hewgill.com
-# Version 1.0
+# Version 1.0.1
 #
 # $Id$
 #
@@ -119,8 +120,8 @@ while True:
                     print "Error getting item: %s" % item['item']
                     pprint.pprint(x)
                     errors += 1
+            total += 1
         last = item['time']
-        total += 1
 print "%d total entries" % total
 print "%d fetched entries" % fetched
 if errors > 0: