code: def stop_tracking(self, end_time):
          
          facts = self.__get_todays_facts()
          if facts and not facts[-1]['end_time']:
              self.__touch_fact(facts[-1], end_time)
              self.facts_changed()
docs: Stops tracking the current activity