Merge lp:~submarine/ubuntu-scopes/gallica-25-limit into lp:~submarine/ubuntu-scopes/gallica

Proposed by David Callé
Status: Merged
Approved by: Didier Roche-Tolomelli
Approved revision: 23
Merged at revision: 23
Proposed branch: lp:~submarine/ubuntu-scopes/gallica-25-limit
Merge into: lp:~submarine/ubuntu-scopes/gallica
Diff against target: 12 lines (+1/-1)
1 file modified
src/unity_gallica_daemon.py (+1/-1)
To merge this branch: bzr merge lp:~submarine/ubuntu-scopes/gallica-25-limit
Reviewer Review Type Date Requested Status
PS Jenkins bot (community) continuous-integration Approve
Didier Roche-Tolomelli Approve
Review via email: mp+154908@code.launchpad.net

Commit message

Don't fetch more than 25 results from the API for speed and ease of exploration.

Description of the change

Don't fetch more than 25 results from the API for speed and ease of exploration.

To post a comment you must log in.
Revision history for this message
Didier Roche-Tolomelli (didrocks) wrote :

trivial limitation :)

review: Approve
Revision history for this message
PS Jenkins bot (ps-jenkins) :
review: Approve (continuous-integration)

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'src/unity_gallica_daemon.py'
2--- src/unity_gallica_daemon.py 2013-03-19 22:22:00 +0000
3+++ src/unity_gallica_daemon.py 2013-03-22 10:44:23 +0000
4@@ -66,7 +66,7 @@
5 return results
6 search = search.replace(' ', ' AND ')
7 search = urllib.parse.quote(search)
8- uri = ('%sSRU?operation=searchRetrieve&version=1.2&maximumRecords=100&startRecord=1&query=%s' % (SEARCH_URI, search))
9+ uri = ('%sSRU?operation=searchRetrieve&version=1.2&maximumRecords=25&startRecord=1&query=%s' % (SEARCH_URI, search))
10 print (uri)
11 try:
12 response = urllib.request.urlopen(uri).read()

Subscribers

People subscribed via source and target branches

to all changes: