main: Small fixed for licences
All checks were successful
Build Docker / Build Master (push) Successful in 23s
Build Docker / Build Bot (push) Successful in 25s

This commit is contained in:
Nathan Woodburn 2023-08-25 14:20:58 +10:00
parent fb9295c260
commit d6dffc0464
Signed by: nathanwoodburn
GPG Key ID: 203B000478AD0EF1
2 changed files with 6 additions and 1 deletions

View File

@ -16,6 +16,11 @@ if Master_Port == None:
FREE_LICENCE = os.getenv('FREE_LICENCE') FREE_LICENCE = os.getenv('FREE_LICENCE')
if FREE_LICENCE == None: if FREE_LICENCE == None:
FREE_LICENCE = False FREE_LICENCE = False
else:
if FREE_LICENCE.lower() == "true":
FREE_LICENCE = True
else:
FREE_LICENCE = False
intents = discord.Intents.default() intents = discord.Intents.default()
client = discord.Client(intents=intents) client = discord.Client(intents=intents)

View File

@ -37,7 +37,7 @@ def new_site():
# Verify both API key and domain exist # Verify both API key and domain exist
if api_key == None: if api_key == None:
return jsonify({'error': 'Missing API key', 'success': 'false'}) return jsonify({'error': 'No licence provided', 'success': 'false'})
if domain == None: if domain == None:
return jsonify({'error': 'Missing domain', 'success': 'false'}) return jsonify({'error': 'Missing domain', 'success': 'false'})