original_docstring: Create new quest database entry.
docstring: Create new quest database entry.
docstring_tokens: Create new quest database entry .
code: def new(cls, title=None, description=None, quest_giver=None,
              location_given=None, session=None):
          """Create new quest database entry."""
          if session is None:
              session = db.session
  
          instance = cls(
              title=title,
              description=description,
              quest_giver=quest_giver,
              location_given=location_given,
              status=True,
              completed_date=None
          )
  
          session.add(instance)
          session.commit()
          return instance
code_tokens: def new ( cls , title = None , description = None , quest_giver = None , location_given = None , session = None ) : if session is None : session = db . session instance = cls ( title = title , description = description , quest_giver = quest_giver , location_given = location_given , status = True , completed_date = None ) session . add ( instance ) session . commit ( ) return instance
short_docstring: Create new quest database entry.
short_docstring_tokens: Create new quest database entry .
comment: """Create new quest database entry."""