pombreda / djapian

Automatically exported from code.google.com/p/djapian
Other
0 stars 0 forks source link

Missing "import time" in index.py #90

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
When running index management command in the daemon mode, it crashes at
line 104 with the following error:

NameError: global name 'time' is not defined

Adding "import time" somewhere near the top of the index.py should help.

Original issue reported on code.google.com by redvas...@gmail.com on 19 Oct 2009 at 9:59

GoogleCodeExporter commented 9 years ago
What version of Djapian do you use?

Original comment by daevaorn on 19 Oct 2009 at 10:44

GoogleCodeExporter commented 9 years ago
I use 2.3, but I can see this problem on the current trunk as well:
http://code.google.com/p/djapian/source/browse/trunk/src/djapian/management/comm
ands/index.py

As you can see it doesn't import time module

Original comment by redvas...@gmail.com on 19 Oct 2009 at 10:49

GoogleCodeExporter commented 9 years ago

Original comment by daevaorn on 19 Oct 2009 at 12:44

GoogleCodeExporter commented 9 years ago
Fixed with r309

Original comment by daevaorn on 21 Oct 2009 at 2:28