changeset 1440:b4d9048ce48a

Change the uppercase variable to lowercase
author Pavel Sviderski <pavel@psviderski.name>
date Thu, 24 May 2012 22:59:12 +0400
parents df07ed7d4f3a
children f87452b408df
files MoinMoin/storage/middleware/indexing.py
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/storage/middleware/indexing.py	Thu May 24 03:05:24 2012 +0400
+++ b/MoinMoin/storage/middleware/indexing.py	Thu May 24 22:59:12 2012 +0400
@@ -107,10 +107,10 @@
     doc = dict([(str(key), value)
                 for key, value in meta.items()
                 if key in schema])
-    for TIME in [MTIME, PTIME]:
-        if TIME in doc:
+    for key in [MTIME, PTIME]:
+        if key in doc:
             # we have UNIX UTC timestamp (int), whoosh wants datetime
-            doc[TIME] = datetime.datetime.utcfromtimestamp(doc[TIME])
+            doc[key] = datetime.datetime.utcfromtimestamp(doc[key])
     doc[NAME_EXACT] = doc[NAME]
     doc[WIKINAME] = wikiname
     doc[CONTENT] = content