|
|
@@ -22,7 +22,7 @@ def main() -> None:
|
|
|
continue
|
|
|
print('\t' + contribution['Time'])
|
|
|
for mat in contribution['Materials']:
|
|
|
- price = prices[mat['Ticker']]
|
|
|
+ price = prices.get(mat['Ticker'], 0)
|
|
|
print(f'\t\t{mat["Ticker"]} {mat["Amount"]} @ {price} = {mat["Amount"] * price}')
|
|
|
|
|
|
def get_prices() -> typing.Mapping[str, float]:
|