wmiys / gui.alpha

Front end for the site
https://wmiys.com
0 stars 0 forks source link

[/search/products]: add pagination #125

Closed rrickgauer closed 3 years ago

rrickgauer commented 3 years ago

setup pagination for the search results page

rrickgauer commented 3 years ago

https://getbootstrap.com/docs/4.5/components/pagination/

rrickgauer commented 3 years ago

Flask request property values

Key Value
args ImmutableMultiDict([('location_id', '25587'), ('starts_on', '2021-06-07'), ('ends_on', '2021-06-08')])
authorization None
base_url http://10.0.0.82:8000/search/products
blueprint search_products
cache_control no-cache
charset utf-8
close <bound method BaseRequest.close of <Request 'http://10.0.0.82:8000/search/products?location_id=25587&starts_on=2021-06-07&ends_on=2021-06-08' [GET]>>
content_encoding None
content_length None
content_md5 None
content_type None
cookies ImmutableMultiDict([('session', 'eyJlbWFpbCI6Im1hc3RlckBleGFtcGxlLmNvbSIsInBhc3N3b3JkIjoiMSIsInVzZXJJRCI6MX0.YJtGsQ.84uea6TCffVer35O7t31UeXh27Y')])
data b''
date None
dict_storage_class <class 'werkzeug.datastructures.ImmutableMultiDict'>
disable_data_descriptor False
encoding_errors replace
endpoint search_products.pSearchResultsAll
environ {'wsgi.version': (1, 0), 'wsgi.url_scheme': 'http', 'wsgi.input': <_io.BufferedReader name=996>, 'wsgi.errors': <colorama.ansitowin32.StreamWrapper object at 0x000001A7FB976E50>, 'wsgi.multithread': True, 'wsgi.multiprocess': False, 'wsgi.run_once': False, 'werkzeug.server.shutdown': <function WSGIRequestHandler.make_environ..shutdown_server at 0x000001A7FBA32940>, 'SERVER_SOFTWARE': 'Werkzeug/1.0.1', 'REQUEST_METHOD': 'GET', 'SCRIPT_NAME': '', 'PATH_INFO': '/search/products', 'QUERY_STRING': 'location_id=25587&starts_on=2021-06-07&ends_on=2021-06-08', 'REQUEST_URI': '/search/products?location_id=25587&starts_on=2021-06-07&ends_on=2021-06-08', 'RAW_URI': '/search/products?location_id=25587&starts_on=2021-06-07&ends_on=2021-06-08', 'REMOTE_ADDR': '10.0.0.82', 'REMOTE_PORT': 64553, 'SERVER_NAME': '0.0.0.0', 'SERVER_PORT': '8000', 'SERVER_PROTOCOL': 'HTTP/1.1', 'HTTP_HOST': '10.0.0.82:8000', 'HTTP_CONNECTION': 'keep-alive', 'HTTP_PRAGMA': 'no-cache', 'HTTP_CACHE_CONTROL': 'no-cache', 'HTTP_UPGRADE_INSECURE_REQUESTS': '1', 'HTTP_USER_AGENT': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/90.0.4430.93 Safari/537.36', 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,/;q=0.8,application/signed-exchange;v=b3;q=0.9', 'HTTP_ACCEPT_ENCODING': 'gzip, deflate', 'HTTP_ACCEPT_LANGUAGE': 'en-US,en;q=0.9', 'HTTP_COOKIE': 'session=eyJlbWFpbCI6Im1hc3RlckBleGFtcGxlLmNvbSIsInBhc3N3b3JkIjoiMSIsInVzZXJJRCI6MX0.YJtGsQ.84uea6TCffVer35O7t31UeXh27Y', 'werkzeug.request': <Request 'http://10.0.0.82:8000/search/products?location_id=25587&starts_on=2021-06-07&ends_on=2021-06-08' [GET]>}
files ImmutableMultiDict([])
form ImmutableMultiDict([])
form_data_parser_class <class 'werkzeug.formparser.FormDataParser'>
from_values <bound method BaseRequest.from_values of <class 'flask.wrappers.Request'>>
full_path /search/products?location_id=25587&starts_on=2021-06-07&ends_on=2021-06-08
get_data <bound method BaseRequest.get_data of <Request 'http://10.0.0.82:8000/search/products?location_id=25587&starts_on=2021-06-07&ends_on=2021-06-08' [GET]>>
get_json <bound method JSONMixin.get_json of <Request 'http://10.0.0.82:8000/search/products?location_id=25587&starts_on=2021-06-07&ends_on=2021-06-08' [GET]>>
headers Host: 10.0.0.82:8000
Connection : keep-alive
Pragma : no-cache
Cache -Control: no-cache
Upgrade -Insecure-Requests: 1
User -Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/90.0.4430.93 Safari/537.36
Accept : text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,/;q=0.8,application/signed-exchange;v=b3;q=0.9
Accept -Encoding: gzip, deflate
Accept -Language: en-US,en;q=0.9
Cookie : session=eyJlbWFpbCI6Im1hc3RlckBleGFtcGxlLmNvbSIsInBhc3N3b3JkIjoiMSIsInVzZXJJRCI6MX0.YJtGsQ.84uea6TCffVer35O7t31UeXh27Y
host 10.0.0.82:8000
host_url http://10.0.0.82:8000/
if_match
if_modified_since None
if_none_match
if_range
if_unmodified_since None
input_stream <_io.BufferedReader name=996>
is_json False
is_multiprocess False
is_multithread True
is_run_once False
is_secure False
json None
json_module <module 'flask.json' from 'C:\Users\1\AppData\Local\Programs\Python\Python38\lib\site-packages\flask\json\init.py'>
list_storage_class <class 'werkzeug.datastructures.ImmutableList'>
make_form_data_parser <bound method BaseRequest.make_form_data_parser of <Request 'http://10.0.0.82:8000/search/products?location_id=25587&starts_on=2021-06-07&ends_on=2021-06-08' [GET]>>
max_content_length None
max_form_memory_size None
max_forwards None
method GET
mimetype
mimetype_params {}
on_json_loading_failed <bound method JSONMixin.on_json_loading_failed of <Request 'http://10.0.0.82:8000/search/products?location_id=25587&starts_on=2021-06-07&ends_on=2021-06-08' [GET]>>
origin None
parameter_storage_class <class 'werkzeug.datastructures.ImmutableMultiDict'>
path /search/products
pragma no-cache
query_string b'location_id=25587&starts_on=2021-06-07&ends_on=2021-06-08'
range None
referrer None
remote_addr 10.0.0.82
remote_user None
routing_exception None
scheme http
script_root
shallow False
stream <_io.BytesIO object at 0x000001A7FBA68770>
trusted_hosts None
url http://10.0.0.82:8000/search/products?location_id=25587&starts_on=2021-06-07&ends_on=2021-06-08
url_charset utf-8
url_root http://10.0.0.82:8000/
url_rule /search/products
user_agent Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/90.0.4430.93 Safari/537.36
values CombinedMultiDict([ImmutableMultiDict([('location_id', '25587'), ('starts_on', '2021-06-07'), ('ends_on', '2021-06-08')]), ImmutableMultiDict([])])
view_args {}
want_form_data_parsed False