From 34974456daef7fa06ed822846e1fd28ac8f2faec Mon Sep 17 00:00:00 2001 From: "Jasper Dahil (dahilj)" Date: Wed, 1 Nov 2017 11:23:58 +0000 Subject: [PATCH] Update Get_Functions.py --- Get_Functions.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/Get_Functions.py b/Get_Functions.py index 7e7c548..47e26cc 100644 --- a/Get_Functions.py +++ b/Get_Functions.py @@ -1,5 +1,5 @@ import random -from DataAPI import getQuestion, opentDBCat +from DataAPI import getQuestion, getCategories greetings = ["hi","hello","hey","sup","howdy","henlo","waddup","wassup","heyo","hiya"] @@ -47,10 +47,11 @@ def getName(sentence): def getQuestion(): """just call this ... I guess, if you want questions ... (need some revision)""" - cats = opentDBCats(True) + cat = getCategories(True, 3) print("--- Categories ---") - for i in range(3): - print(random.choice(cats)) + print(cat[0]) + print(cat[1]) + print(cat[2]) userInput = input("Please, pick a subject: \n").casefold()