original_docstring: Add details to an existing quest database entry.
docstring: Add details to an existing quest database entry.
docstring_tokens: Add details to an existing quest database entry .
code: def add_detail(cls, quest_id, more_detail=None, session=None):
          """Add details to an existing quest database entry."""
          if session is None:
              session = db.session
  
          instance = cls.get_by_id(quest_id, session)
  
          if more_detail:
              longer_desc = "{}||{}"
              if instance.description:
                  instance.description = longer_desc.format(
                      instance.description, more_detail)
              else:
                  instance.description = more_detail
              instance.last_updated = datetime.now()
  
              session.add(instance)
              session.commit()
  
          return instance
code_tokens: def add_detail ( cls , quest_id , more_detail = None , session = None ) : if session is None : session = db . session instance = cls . get_by_id ( quest_id , session ) if more_detail : longer_desc = "{}||{}" if instance . description : instance . description = longer_desc . format ( instance . description , more_detail ) else : instance . description = more_detail instance . last_updated = datetime . now ( ) session . add ( instance ) session . commit ( ) return instance
short_docstring: Add details to an existing quest database entry.
short_docstring_tokens: Add details to an existing quest database entry .
comment: """Add details to an existing quest database entry."""