Project

General

Profile

« Previous | Next » 

Revision a0f033b8

Added by David Sorber almost 6 years ago

Minor updates mainly to pwmgr to fix Gtk3.0 deprecations.

View differences:

software/misc/generate_rows.py
import sys
# This script is for creating rows for the repayment schedule page:
# https://baranovich.homelinux.org:3268/schedule.html
# https://phalanx.homelinuxserver.org/schedule.html
PAYMENT_AMOUNT = 500
ROW_TEMPLATE = ' <tr{:s}>\n <td class="align-center">{:d}</td>'\
......
'<td>{:s}</td>\n </tr>'
def main():
num_rows = 75
row_idx = 20
month_idx = 5
num_rows = 68
row_idx = 23
month_idx = 8
year_idx = 2020
principal = 37000
principal = 34000
for idx in range(num_rows):
row = ((row_idx % 2 == 0) and ' class="even_row"' or '',

Also available in: Unified diff