(sketch)
Update the last activity date of a sketch.
Update the last activity date of a sketch.
Update the last activity date of a sketch .
def update_sketch_last_activity(sketch):
    """Update the last activity date of a sketch."""
    view = View.get_or_create(
        user=current_user, sketch=sketch, name='')
    view.update_modification_time()

    db_session.add(view)
    db_session.commit()
def update_sketch_last_activity ( sketch ) : view = View . get_or_create ( user = current_user , sketch = sketch , name = '' ) view . update_modification_time ( ) db_session . add ( view ) db_session . commit ( )