Revision 55434
Added by Sandro La Bruzzo about 5 years ago
scholix_controller.py | ||
---|---|---|
24 | 24 |
p = 0 |
25 | 25 |
if page: |
26 | 26 |
p = page |
27 |
if p > 1000: |
|
28 |
return "Max number of page reached" |
|
27 | 29 |
return c.realtionFromDatasource(datasource, p) |
28 | 30 |
|
29 | 31 |
|
... | ... | |
42 | 44 |
p = 0 |
43 | 45 |
if page: |
44 | 46 |
p = page |
47 |
if p > 1000: |
|
48 |
return "Max number of page reached" |
|
45 | 49 |
return c.realtionFromPublisher(publisher, p) |
46 | 50 |
|
47 | 51 |
|
... | ... | |
66 | 70 |
p = 0 |
67 | 71 |
if page: |
68 | 72 |
p = page |
73 |
if p > 1000: |
|
74 |
return "Max number of page reached" |
|
69 | 75 |
return c.realtionToPid(pid=pid, pidType=pidType, typology=typologyTarget, datasource=datasourceTarget, page=p) |
Also available in: Unified diff
Added UWSGI Implementation and limit the page to 1000