(self, sketch_id)
Initializes a Sketch object.

        Args:
            sketch_id: The Sketch ID.
Initializes a Sketch object.
Initializes a Sketch object .
def __init__(self, sketch_id):
        """Initializes a Sketch object.

        Args:
            sketch_id: The Sketch ID.
        """
        self.id = sketch_id
        self.sql_sketch = SQLSketch.query.get(sketch_id)

        if not self.sql_sketch:
            raise RuntimeError('No such sketch')
def __init__ ( self , sketch_id ) : self . id = sketch_id self . sql_sketch = SQLSketch . query . get ( sketch_id ) if not self . sql_sketch : raise RuntimeError ( 'No such sketch' )