Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion api/commands/plotman_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -335,7 +335,7 @@ def load_schedule():
return json.dumps(json.loads(open(PLOTTING_SCHEDULES,'r').read()))
except Exception as ex:
app.logger.error("Failed to read plotting schedule from {0} due to {1}.".format(PLOTTING_SCHEDULES, str(ex)))
return [] # Return an empty schedule response if not present.
return "[]" # Return an empty schedule response if not present.

# A reference to the scheduler
saved_scheduler = None
Expand Down
11 changes: 10 additions & 1 deletion api/models/log.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,16 @@ def __init__(self, cli_stdout, blockchain):
'time_taken': str(re.search(r'took ([0-9]+\.?[0-9]*(?:[Ee]\ *-?\ *[0-9]+)?) sec', line, re.IGNORECASE).group(1)) + ' secs',
'created_at': line[:19] # example at line start: 2022-01-25 10:14:33
})
else: # All Chia forks
elif blockchain == 'chia':
self.rows.append({
'challenge_id': re.search(r'challenge_hash: (\w{10})', line, re.IGNORECASE).group(1) + '...',
'plots_past_filter': str(re.search(r'(\d+) plots were eligible', line, re.IGNORECASE).group(1)) + \
'/' + str(re.search(r'Total (\d+) plots', line, re.IGNORECASE).group(1)),
'proofs_found': int(re.search(r'Found (\d+) V1 proofs', line, re.IGNORECASE).group(1)),
'time_taken': str(re.search(r'Time: (\d+\.?\d*) s.', line, re.IGNORECASE).group(1)) + ' secs',
'created_at': line.split()[0].replace('T', ' ')
})
else: # All legacy Chia forks
self.rows.append({
'challenge_id': re.search(r'eligible for farming (\w+)', line, re.IGNORECASE).group(1) + '...',
'plots_past_filter': str(re.search(r'INFO\s*(\d+) plots were eligible', line, re.IGNORECASE).group(1)) + \
Expand Down
12 changes: 6 additions & 6 deletions scripts/pull_3rd_party_libs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,15 @@ LEAFLET_VERSION=1.9.4

# List of other css/js links
LIST="
https://cdn.datatables.net/2.3.0/css/dataTables.bootstrap5.css
https://cdn.datatables.net/2.3.0/js/dataTables.bootstrap5.js
https://cdn.datatables.net/2.3.0/js/dataTables.min.js
https://cdn.jsdelivr.net/npm/chart.js@4.4.9/dist/chart.umd.js.map
https://cdn.jsdelivr.net/npm/chart.js@4.4.9/dist/chart.umd.min.js
https://cdn.datatables.net/2.3.5/css/dataTables.bootstrap5.css
https://cdn.datatables.net/2.3.5/js/dataTables.bootstrap5.js
https://cdn.datatables.net/2.3.5/js/dataTables.min.js
https://cdn.jsdelivr.net/npm/chart.js@4.5.1/dist/chart.umd.js.map
https://cdn.jsdelivr.net/npm/chart.js@4.5.1/dist/chart.umd.min.js
https://cdn.jsdelivr.net/npm/chartjs-adapter-luxon@1.3.1/dist/chartjs-adapter-luxon.umd.min.js
https://cdn.jsdelivr.net/npm/chartjs-plugin-datalabels@2.2.0/dist/chartjs-plugin-datalabels.min.js
https://cdn.jsdelivr.net/npm/jquery@3.7.1/dist/jquery.min.js
https://cdn.jsdelivr.net/npm/luxon@3.6.1/build/global/luxon.min.js"
https://cdn.jsdelivr.net/npm/luxon@3.7.2/build/global/luxon.min.js"

mkdir -p $BASEPATH
for url in $LIST ; do
Expand Down
2 changes: 1 addition & 1 deletion web/templates/settings/plotting.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

<div class="modal fade" id="scheduleModal" data-bs-backdrop="static" tabindex="-1" aria-labelledby="scheduleModalLabel" aria-hidden="true">
<div class="modal-dialog bg-dark rounded-3">
<div class="modal-content bg-dark">
<div class="modal-content text-white bg-dark">
<div class="modal-header bg-dark">
<h5 class="modal-title" id="scheduleModalLabel">{{_('Scheduled Plotting')}}</h5>
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
Expand Down
Loading