Skip to content

Commit 9f50fc6

Browse files
committed
Add proper fetching of talks
Signed-off-by: Matt Stratton <[email protected]>
1 parent 2451910 commit 9f50fc6

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

create/speaker.go

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -119,8 +119,6 @@ var qsCreateSpeaker = []*survey.Question{
119119
// Speaker takes input from the user to create a new speaker
120120
func Speaker(speakerName, city, year string) (err error) {
121121

122-
// var imagePath string
123-
124122
answers := struct {
125123
Name string
126124
Bio string
@@ -164,7 +162,7 @@ func Speaker(speakerName, city, year string) (err error) {
164162
if name == true {
165163
prompt := &survey.Select{
166164
Message: "Choose a talk:",
167-
Options: helpers.GetTalks("", ""),
165+
Options: helpers.GetTalks(city, year),
168166
}
169167
survey.AskOne(prompt, &talk, nil)
170168
color.Yellow("NOT IMPLEMENTED")

0 commit comments

Comments
 (0)