Revision: 8164
Author:   filnik
Date:     2010-05-14 10:23:38 +0000 (Fri, 14 May 2010)

Log Message:
-----------
Bugfix: the previous bug fixed is in more than one point, so fixed in every 
part of the script (I hope) 

Modified Paths:
--------------
    trunk/pywikipedia/checkimages.py

Modified: trunk/pywikipedia/checkimages.py
===================================================================
--- trunk/pywikipedia/checkimages.py    2010-05-14 09:09:50 UTC (rev 8163)
+++ trunk/pywikipedia/checkimages.py    2010-05-14 10:23:38 UTC (rev 8164)
@@ -1367,7 +1367,10 @@
             for imageData in generator:
                 if normal:
                     image = imageData[0]
-                    timestamp = imageData[1]
+                    #20100511133318L --- 15:33, 11 mag 2010 e 18 sec
+                    b = str(imageData[1]) # use b as variable to make smaller 
the timestamp-formula used below..
+                    # fixing the timestamp to the format that we normally use..
+                    timestamp = "%s-%s-%sT%s:%s:%sZ" % (b[0:4], b[4:6], 
b[6:8], b[8:10], b[10:12], b[12:14])
                     uploader = imageData[2]
                     comment = imageData[3]
                     newGen.append([image, timestamp, uploader, comment])
@@ -1735,7 +1738,10 @@
             if normal:
                 imageData = image
                 image = imageData[0]
-                timestamp = imageData[1]
+                #20100511133318L --- 15:33, 11 mag 2010 e 18 sec
+                b = str(imageData[1]) # use b as variable to make smaller the 
timestamp-formula used below..
+                # fixing the timestamp to the format that we normally use..
+                timestamp = "%s-%s-%sT%s:%s:%sZ" % (b[0:4], b[4:6], b[6:8], 
b[8:10], b[10:12], b[12:14])
                 uploader = imageData[2]
                 comment = imageData[3] # useless, in reality..
             else:



_______________________________________________
Pywikipedia-svn mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/pywikipedia-svn

Reply via email to