Modified load_credentials()
Made the load_credentials function add credentials to the credential lists.
This commit is contained in:
parent
7d0520b0b0
commit
d773d8b8da
@ -61,12 +61,18 @@ class Credentials_Module():
|
|||||||
if file.lower().find("twitch") != -1:
|
if file.lower().find("twitch") != -1:
|
||||||
credential_loading_function = self.credentialLoadingFunctions.get(Credential.Twitch_Credential)
|
credential_loading_function = self.credentialLoadingFunctions.get(Credential.Twitch_Credential)
|
||||||
output = credential_loading_function(self, file)
|
output = credential_loading_function(self, file)
|
||||||
|
if output is not None:
|
||||||
|
self.Twitch_Credentials_List.append(output)
|
||||||
if file.lower().find("discord") != -1:
|
if file.lower().find("discord") != -1:
|
||||||
credential_loading_function = self.credentialLoadingFunctions.get(Credential.Discord_Credential)
|
credential_loading_function = self.credentialLoadingFunctions.get(Credential.Discord_Credential)
|
||||||
output = credential_loading_function(self, file)
|
output = credential_loading_function(self, file)
|
||||||
|
if output is not None:
|
||||||
|
self.Discord_Credentials_List.append(output)
|
||||||
if file.lower().find("db") != -1:
|
if file.lower().find("db") != -1:
|
||||||
credential_loading_function = self.credentialLoadingFunctions.get(Credential.DB_Credential)
|
credential_loading_function = self.credentialLoadingFunctions.get(Credential.DB_Credential)
|
||||||
output = credential_loading_function(self, file)
|
output = credential_loading_function(self, file)
|
||||||
|
if output is not None:
|
||||||
|
self.DB_Credentials_List.append(output)
|
||||||
|
|
||||||
def list_credential_files(self):
|
def list_credential_files(self):
|
||||||
credentialPath = self.get_credentials_dir()
|
credentialPath = self.get_credentials_dir()
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user