Project

General

Profile

« Previous | Next » 

Revision 50946

updated the number of results

View differences:

scholix.py
67 67

  
68 68
def create_response(response, current_page):
69 69
    result = {'totalLinks': response.hits.total, 'currentPage': current_page,
70
              'totalPages': 1 + response.hits.total / 10, 'result': []}
70
              'totalPages': 1 + response.hits.total / 100, 'result': []}
71 71
    now = datetime.now()
72 72
    for item in response.hits:
73 73
        current_item = {'LinkPublicationDate': now.strftime("%Y-%m-%d"), 'HarvestedDate': now.strftime("%Y-%m-%d"),

Also available in: Unified diff