import json import os from ConfigManager import getConfigurationKey def CONST_DatabaseProvider(): return getConfigurationKey("database", "provider") def CONST_NintendoEShopURL(): return getConfigurationKey("store", "NintendoEShopURL") def CONST_DefaultFilter(): return getConfigurationKey("store", "DefaultFilter") def CONST_DlcFilter(): #return "https://search.nintendo-europe.com/fr/select?q=mario%20kart&fq=type%3ADLC%20AND%20sorting_title%3A*%20AND%20*%3A*" return getConfigurationKey("store", "DlcFilter") def CONST_DefaultSort(): return getConfigurationKey("store", "DefaultSort") def CONST_DefaultHeaders(): headers = getConfigurationKey("store", "DefaultHeaders") return json.loads(headers) def CONST_LogsFolder(): path = os.getcwd() + "/logs" return path def CONST_DatabaseFolder(): path = os.getcwd() + "/database" return path def CONST_GamesQueriesFilePath(): path = os.getcwd() + "/config/gamesQueries.txt" return path def CONST_DlcQueriesFilePath(): path = os.getcwd() + "/config/dlcQueries.txt" return path def CONST_GetDiscordWebhookURL(): return getConfigurationKey("discord", "WebhookUrl") def CONST_GetPostgresDatabaseHost(): return getConfigurationKey("postgres_database", "host") def CONST_GetPostgresDatabasePort(): return getConfigurationKey("postgres_database", "port") def CONST_GetPostgresDatabaseDatabaseName(): return getConfigurationKey("postgres_database", "database_name") def CONST_GetPostgresDatabaseUserName(): return getConfigurationKey("postgres_database", "user_name") def CONST_GetPostgresDatabaseUserPassword(): return getConfigurationKey("postgres_database", "user_password")