Hi Hossein:
On Fri, 05 Dec 2008, Hossein Rafighi wrote:
> Exception caught: int() argument must be a string or a number
> [...]
> max_recid = int(run_sql("SELECT max(id) FROM bibrec")[0][0])
It looks like you don't have any records defined on your system?! The
above SQL query will then return NULL, leading to a casting traceback.
The following patch fixes the problem:
<http://cdsware.cern.ch/repo/?p=cds-invenio.git;a=blobdiff;f=modules/bibrank/lib/bibrank_word_indexer.py;h=ed8bd88ca8aa1e0cd5f765c7b8a2103e6329dc37;hp=a8305839e8a78e311aa74634398c874466947a3e;hb=c570f6c8f96315ef3755791cca7f092c814279eb;hpb=a4017732666dd7d793af78eaf73ace73808d069b>
Best regards
--
Tibor Simko ** CERN Document Server ** <http://cds.cern.ch/>