From faa0c8100940fa3ab9f25e43eeee4d0d5b257d93 Mon Sep 17 00:00:00 2001 From: Matthew Ludwig Date: Mon, 16 Dec 2019 22:51:51 +0100 Subject: [PATCH 1/2] remove all TODOs from 01_fyyur/forms.py since they are really confusing and not checked for anyway" --- projects/01_fyyur/starter_code/forms.py | 6 ------ 1 file changed, 6 deletions(-) diff --git a/projects/01_fyyur/starter_code/forms.py b/projects/01_fyyur/starter_code/forms.py index 42771beb5dd..1cc2f4327b4 100644 --- a/projects/01_fyyur/starter_code/forms.py +++ b/projects/01_fyyur/starter_code/forms.py @@ -89,7 +89,6 @@ class VenueForm(Form): 'image_link' ) genres = SelectMultipleField( - # TODO implement enum restriction 'genres', validators=[DataRequired()], choices=[ ('Alternative', 'Alternative'), @@ -181,14 +180,12 @@ class ArtistForm(Form): ] ) phone = StringField( - # TODO implement validation logic for state 'phone' ) image_link = StringField( 'image_link' ) genres = SelectMultipleField( - # TODO implement enum restriction 'genres', validators=[DataRequired()], choices=[ ('Alternative', 'Alternative'), @@ -213,8 +210,5 @@ class ArtistForm(Form): ] ) facebook_link = StringField( - # TODO implement enum restriction 'facebook_link', validators=[URL()] ) - -# TODO IMPLEMENT NEW ARTIST FORM AND NEW SHOW FORM From 98c50f931b10a1c8e82240036c335fb005f6e45c Mon Sep 17 00:00:00 2001 From: Matthew Ludwig Date: Mon, 16 Dec 2019 22:52:46 +0100 Subject: [PATCH 2/2] fix critical and non critical typos in fyyur starter code app.py" --- projects/01_fyyur/starter_code/app.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/projects/01_fyyur/starter_code/app.py b/projects/01_fyyur/starter_code/app.py index b30c04a42a2..8fe4a465957 100644 --- a/projects/01_fyyur/starter_code/app.py +++ b/projects/01_fyyur/starter_code/app.py @@ -113,7 +113,7 @@ def venues(): @app.route('/venues/search', methods=['POST']) def search_venues(): # TODO: implement search on artists with partial string search. Ensure it is case-insensitive. - # seach for Hop should return "The Musical Hop". + # search for Hop should return "The Musical Hop". # search for "Music" should return "The Musical Hop" and "Park Square Live Music & Coffee" response={ "count": 1, @@ -258,7 +258,7 @@ def artists(): @app.route('/artists/search', methods=['POST']) def search_artists(): # TODO: implement search on artists with partial string search. Ensure it is case-insensitive. - # seach for "A" should return "Guns N Petals", "Matt Quevado", and "The Wild Sax Band". + # search for "A" should return "Guns N Petals", "Matt Quevado", and "The Wild Sax Band". # search for "band" should return "The Wild Sax Band". response={ "count": 1, @@ -272,8 +272,8 @@ def search_artists(): @app.route('/artists/') def show_artist(artist_id): - # shows the venue page with the given venue_id - # TODO: replace with real venue data from the venues table, using venue_id + # shows the artist page with the given artist_id + # TODO: replace with real artist data from the artist table, using artist_id data1={ "id": 4, "name": "Guns N Petals",