Create and modify drinks function.

This commit is contained in:
luxick
2018-03-14 14:08:19 +01:00
parent ec71d4415f
commit ac01a4441b
4 changed files with 22 additions and 10 deletions

View File

@@ -72,6 +72,11 @@ class GtkUi:
self.data_client.send_request('update_player', player)
self.full_reload()
def update_drink(self, drink: 'models.Drink'):
with util.network_operation(self):
self.data_client.send_request('update_drink', drink)
self.full_reload()
def update_season(self, season: 'models.Season'):
with util.network_operation(self):
self.data_client.send_request('update_season', season)