Skip to content

Commit

Permalink
Fixing GCRPRICE to default to 0 if there is no value in the DB
Browse files Browse the repository at this point in the history
  • Loading branch information
Will Gunty committed Jul 12, 2024
1 parent d380762 commit fb843e5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion main.py
Original file line number Diff line number Diff line change
Expand Up @@ -4014,7 +4014,8 @@ def boinc_loop(
if grc_price:
DATABASE["GRCPRICE"] = grc_price
else:
grc_price = DATABASE["GRCPRICE"]
grc_price = DATABASE.get("GRCPRICE",0)

# Check profitability of all projects, if none profitable
# (and user doesn't want unprofitable crunching), sleep for 1hr
if ONLY_BOINC_IF_PROFITABLE and not dev_loop:
Expand Down

0 comments on commit fb843e5

Please sign in to comment.