def ship_config(self, arr): ''' Store the new ship config of the client, Store the ship status, send it to the client ''' DataBase.set_ship(self.username, arr) DataBase.set_ship_status(self.username, 1) self.send(Message('shst', 1), pickling=True)
def set_ship_status(self, content): ''' Set the status of the user ship. ''' DataBase.set_ship_status(self.username, content)