sql_query="select count(*) from rnkDOWNLOADS where id_bibrec=%s%s and download_time>='%s' and download_time<'%s';"%(id_bibrec,id_bibdoc_query_addition,date1,date2)
res=run_sql(sql_query)[0][0]
list_tuple.append((elem[0],res))
#list_tuple = sort_list_tuple_by_date(list_tuple)
return(list_tuple)
defsort_list_tuple_by_date(list_tuple):
"""Sort a list of tuple of the forme ("09/2004", 3)according to the