-
Notifications
You must be signed in to change notification settings - Fork 0
/
python outline.txt
94 lines (69 loc) · 1.93 KB
/
python outline.txt
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
+ python outline +
required functions
registerUser() done
peramiters
- user_id
- A_number
- email
- phone_number (optional)
- discord_id (optional)
- callsign (optional)
- 2FA_key (optional)
generates and runs a SQL Insert statment into players table.
newGame() done
peramiters
- gameName
- startTime
- endTime
- game_email_key
generates and runs a SQL insert statment into the games table.
registerUserInGame() done
peramiters
- user_id
- code_id
- game_id
generates and runs a SQL insert statment into the codes, and player_game tables.
getUserData() done
peramiters
- user_id
returns a nested list (or dict) of the relivent data assoceated with the user.
getPlayerData() done
# ive made this an override of getUserData, just dont include a peramiter.
returns a nested list (or dict) with all players data.
messagePlayers()
peramiters
- list of user_ids
- message
sends a message to every player in the list via there prefered method of contact.
getTags() done
returns a list of tag info as strings with the most recent tag at index 0.
get2FA() done
peramiters
- 2FA key
- code
returns wther or not the 2FA code is valid.
new2FA() done
returns a new 2FA_key.
generateQRCode() done
peramiters
- url
- filepath
exicuteSelect() done
peramiters
- MySQL select statment
returns a nested list table of results (the errorMsg if error).
exicuteInsert() done
peramiters
- MySQL insert statment
returns true for no error and the errorMsg if error.
getCodeInfo()
peramiters
- code
reuturns true if a game is active and the player is un-registered
returns false if there are no active games
returns a stirng if an error occured
returns a list containing the player name and tag_code
getPlayerName()
peramiters
- user_id
returns the string f'{firstName} "{callsign}" {lastName}'