|
|
@@ -57,11 +57,14 @@ def main() -> None:
|
|
|
for output in recipe['outputs']:
|
|
|
if output['material_ticker'] in into:
|
|
|
recipes_per_output[output['material_ticker']] += 1
|
|
|
- for output_mat, total in sorted(into.items(), key=lambda kv: kv[1], reverse=True):
|
|
|
+ total_consumed = 0
|
|
|
+ for output_mat, consumed in sorted(into.items(), key=lambda kv: kv[1], reverse=True):
|
|
|
alt = ''
|
|
|
if (recipe_count := recipes_per_output[output_mat]) != 1:
|
|
|
alt = f' ({recipe_count} recipes)'
|
|
|
- print(f'{output_mat:3}: {total:8,.0f}{alt}')
|
|
|
+ print(f'{output_mat:3}: {consumed:8,.0f}{alt}')
|
|
|
+ total_consumed += consumed
|
|
|
+ print('total consumed:', total_consumed)
|
|
|
|
|
|
def pmmg_monthly_report() -> CompanyData:
|
|
|
last_month = pmmg_month()
|