[fix] matrixrooms.info: pagination not working properly

This commit is contained in:
Bnyro 2023-09-30 11:23:32 +02:00 committed by MatthieuBarbu
parent cef109e0e0
commit 32e04f05bf

View File

@ -22,7 +22,7 @@ page_size = 20
def request(query, params):
params['url'] = f"{base_url}/search/{quote_plus(query)}/{page_size}/{params['pageno']-1}"
params['url'] = f"{base_url}/search/{quote_plus(query)}/{page_size}/{(params['pageno']-1)*page_size}"
return params