MCPcopy Index your code
hub / github.com/Bitmessage/PyBitmessage / on_action_ForceSend

Method on_action_ForceSend

src/bitmessageqt/__init__.py:3237–3250  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

3235 currentRow if currentRow == 0 else currentRow - 1)
3236
3237 def on_action_ForceSend(self):
3238 currentRow = self.ui.tableWidgetInbox.currentRow()
3239 addressAtCurrentRow = self.ui.tableWidgetInbox.item(
3240 currentRow, 0).data(QtCore.Qt.UserRole)
3241 toRipe = decodeAddress(addressAtCurrentRow)[3]
3242 sqlExecute(
3243 '''UPDATE sent SET status='forcepow' WHERE toripe=? AND status='toodifficult' and folder='sent' ''',
3244 toRipe)
3245 queryreturn = sqlQuery('''select ackdata FROM sent WHERE status='forcepow' ''')
3246 for row in queryreturn:
3247 ackdata, = row
3248 queues.UISignalQueue.put(('updateSentItemStatusByAckdata', (
3249 ackdata, 'Overriding maximum-difficulty setting. Work queued.')))
3250 queues.workerQueue.put(('sendmessage', ''))
3251
3252 def on_action_SentClipboard(self):
3253 currentRow = self.ui.tableWidgetInbox.currentRow()

Callers

nothing calls this directly

Calls 5

decodeAddressFunction · 0.90
sqlExecuteFunction · 0.90
sqlQueryFunction · 0.90
putMethod · 0.80
dataMethod · 0.45

Tested by

no test coverage detected