Positions TUI #20

Merged
merenber merged 4 commits from positions-tui into v1 2021-09-26 15:23:49 -04:00
1 changed files with 1 additions and 3 deletions
Showing only changes of commit a6b32c1b0b - Show all commits

View File

@ -1,5 +1,3 @@
from threading import Thread
from asciimatics.widgets import Layout, Label, Text
from zope import component
@ -40,7 +38,7 @@ class SetPositionsView(CeoFrame):
self.save()
body = {pos: username for pos, username in self.data.items() if username}
self._model.deferred_req = defer(http_post, f'/api/positions', json=body)
self._model.deferred_req = defer(http_post, '/api/positions', json=body)
self._model.operations = UpdateMemberPositionsTransaction.operations
self._model.confirm_lines = [
"The positions will be updated as follows:",