Skip to content

Commit

Permalink
Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
za3k committed Jun 10, 2021
1 parent 583bc4b commit 5073976
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion budget_summary.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
print("{: <12} {:.2f}".format("Total (no rent):", sum(amount for (amount, category) in lines if category != "Rent")))
categories = sorted(set(category for (amount, category) in lines))
print()
OTHER = ("Food", "Grocery", "Luxury")
OTHER = ("Grocery", "Luxury", "Good", "Restaurant")
for category in categories:
if category not in OTHER:
print("{: <12} {:.2f}".format(category+":", sum(amount for (amount, c) in lines if category == c)))
Expand Down
2 changes: 1 addition & 1 deletion roll
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ if m:
else:
modifier = 0
result = modifier
for i in range(sides):
for i in range(dice):
result += random.randint(1, sides)
if modifier >= 0:
s = "{}d{}+{}".format(dice, sides, modifier)
Expand Down

0 comments on commit 5073976

Please sign in to comment.