Create death events function.

This commit is contained in:
luxick
2018-03-14 14:47:04 +01:00
parent ac01a4441b
commit 48ed0d830f
7 changed files with 38 additions and 7 deletions

View File

@@ -77,6 +77,11 @@ class GtkUi:
self.data_client.send_request('update_drink', drink)
self.full_reload()
def save_death(self, death: 'models.Death'):
with util.network_operation(self):
self.data_client.send_request('save_death', death)
self.full_reload()
def update_season(self, season: 'models.Season'):
with util.network_operation(self):
self.data_client.send_request('update_season', season)