import math
def manufactureUsersTable(rows):
table = """
"""
string_rows = []
for row in rows:
string_row = f"""
| {row[1]} |
"""
string_rows.append(string_row)
table = table.replace("%%rows%%", "".join(string_rows))
return table
def manufacturePagination(current_page:int , count:int, limit:int):
total_pages = math.ceil(count/limit)
pag = ""
limits = "hx-vals='{" + f'"limit": "{str(limit)}"' + "}'"
if count >= limit:
pag += '"
return pag