code: def finished(self):
          
          self.data_service.update_activity(self.id, self.name, self.desc,
                                            started_on=self.started,
                                            ended_on=self._current_timestamp_str())
docs: Mark the activity as finished