Commit 82cc2c62 authored by Vladimir Malenovsky's avatar Vladimir Malenovsky
Browse files

updated printout of merged PROM and TROM newsletters

parent 7a02eef2
Loading
Loading
Loading
Loading
Loading
+19 −9
Original line number Diff line number Diff line
@@ -65,24 +65,34 @@ with open(newsletterFilenameTROM, "r") as csvfile:
# now we have the following format
# PROM enc, PROM dec, PROM total, TROM enc, TROM dec, TROM total

print("conf;PROM enc;PROM dec;PROM total;TROM enc;TROM dec;TROM total")
print("conf;PROM enc;PROM dec;PROM com;PROM rend;PROM total;TROM enc;TROM dec;TROM com;TROM rend;TROM total;total")

for key in rom_table:
    ram = rom_table[key]
    total = int(ram[1]) + int(ram[2]) + int(ram[5])
    rom = rom_table[key]
    total = int(rom[4]) + int(rom[9])
    print(
        key,
        ";",
        ram[0],
        rom[0],
        ";",
        ram[1],
        rom[1],
        ";",
        ram[2],
        rom[2],
        ";",
        ram[3],
        rom[3],
        ";",
        ram[4],
        rom[4],
        ";",
        ram[5],
        rom[5],
        ";",
        rom[6],
        ";",
        rom[7],
        ";",
        rom[8],
        ";",
        rom[9],
        ";",
        total,
        sep="",
    )