Esempio n. 1
0
def delete_artwork(artist_id_in, artwork_name_in):
    try:
        return Artwork.delete().where(
            Artwork.artist_id == artist_id_in,
            Artwork.artwork_name == artwork_name_in).execute()
    except DatabaseError:  # as de:
        #return de
        return 'Sorry. There was an error deleting the artwork'
Esempio n. 2
0
def delete_artwork(artwork_name):
    Artwork.delete().where(Artwork.name == artwork_name).execute()