Revision 50946
Added by Sandro La Bruzzo over 6 years ago
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
updated the number of results