Skip to content

Commit 0e09cd2

Browse files
committedApr 28, 2022
Commit to test alternative Heroku config
1 parent f80d1e6 commit 0e09cd2

File tree

4 files changed

+14
-14
lines changed

4 files changed

+14
-14
lines changed
 

‎.gitignore

+1-2
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,4 @@ __pycache__/
66
*.py[cod]
77
node_modules/
88
.github/
9-
creds.json
10-
client_secrets.json
9+
creds.json

‎create_form.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,7 @@
1111

1212
# https://google-auth.readthedocs.io/en/master/user-guide.html
1313

14-
CREDS = service_account.Credentials.from_service_account_file(
15-
'client_secrets.json')
14+
CREDS = service_account.Credentials.from_service_account_file('creds.json')
1615

1716
SCOPED_CREDENTIALS = CREDS.with_scopes(
1817
['https://www.googleapis.com/auth/forms.body'])

‎drive_utility.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
SECRET = os.environ.get("ADMIN")
1414

1515
CREDS = service_account.Credentials.from_service_account_file(
16-
'client_secrets.json')
16+
'creds.json')
1717

1818

1919
SCOPED_CREDENTIALS = CREDS.with_scopes(

‎run.py

+11-9
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@
55
import sys
66
from termcolor import colored, cprint
77
from helpers import ask_any_key, ask_yes_no, clear
8-
import create_quiz
9-
import play_quiz
10-
import create_form
8+
from create_form import create_google_form
9+
from create_quiz import *
10+
from play_quiz import *
1111

1212
now = datetime.now()
1313
current_hour = int(now.strftime("%H"))
@@ -95,31 +95,33 @@ def main():
9595

9696
if response == 1:
9797
# Creates a quiz round of 8 easy general knowledge questions
98-
quick_quiz = create_quiz.Game("Quick Quiz", 1, 8, [9], "easy")
98+
quick_quiz = Game("Quick Quiz", 1, 8, [9], "easy")
9999
print(quick_quiz.__dict__)
100100

101101
# Play the Quiz Game
102-
play_quiz.play_terminal_quiz(quick_quiz)
102+
play_terminal_quiz(quick_quiz)
103103

104104
continue
105105

106106
if response == 2:
107107
print("OK you want to make a custom Quiz!")
108108

109109
# Prompts the user to set up their quiz
110-
custom_quiz = create_quiz.setup_new_quiz()
110+
custom_quiz = setup_new_quiz()
111111

112112
# Play the Quiz the user just set up
113-
play_quiz.play_terminal_quiz(custom_quiz)
113+
play_terminal_quiz(custom_quiz)
114114

115115
continue
116116
if response == 3:
117117
print("OK you want to make a Google For Quiz"
118118
" to share with friends")
119119

120-
google_quiz = create_quiz.setup_new_quiz()
120+
google_quiz = setup_new_quiz()
121121

122-
create_form.create_form_body(google_quiz)
122+
print(google_quiz)
123+
124+
create_google_form(google_quiz)
123125

124126
break
125127
if response == 4:

0 commit comments

Comments
 (0)
Please sign in to comment.