-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinstuff.py
39 lines (35 loc) · 1007 Bytes
/
instuff.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
import datetime
import scrapewat
import termOptions
import usrtable
now = datetime.datetime.now()
#Main class object that defines all of users core data points
#note the space variable is asking "Is there space?" and it will always default to True
class UserBlock:
def __init__(self):
self.code = None
self.num = None
self.sec = None
self.term = None
self.url = None
self.coursestring = None
self.email = None
self.phone = None
self.loginCode = None
self.space = True
def functiontest():
print("Testing backend app logic")
usr = UserBlock()
usr.code = "CS"
usr.num = "115"
usr.sec = "001"
usr.phone = "+15064250651"
print("Displaying available terms: ")
termOptions.displayOptions()
uinput = input()
usr.term = termOptions.termselect(uinput)
usr = scrapewat.generateURL(usr)
print(usr.coursestring)
scrapewat.spacecheck(usr)
usrtable.savetoDB(usr)
functiontest()