Skip to content

Commit

Permalink
Adjust DB, adjust logger
Browse files Browse the repository at this point in the history
  • Loading branch information
jackra1n committed Aug 22, 2024
1 parent 55406cd commit 29a6779
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion core/custom_logger.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ class CustomLogFormatter(logging.Formatter):
dt_fmt = "%Y-%m-%d %H:%M:%S"

FORMATS = {
logging.DEBUG: format_prefix + dark_grey + level_name + format_suffix,
logging.DEBUG: format_prefix + purple + level_name + format_suffix,
logging.INFO: format_prefix + dark_grey + level_name + format_suffix,
logging.WARNING: format_prefix + yellow + level_name + source_line + format_suffix,
logging.ERROR: format_prefix + red + level_name + source_line + format_suffix,
Expand Down
4 changes: 2 additions & 2 deletions resources/CreateDatabase.sql
Original file line number Diff line number Diff line change
Expand Up @@ -127,9 +127,9 @@ CREATE TABLE IF NOT EXISTS free_game_history (
);

CREATE TABLE IF NOT EXISTS url_cleaner_settings (
id BIGINT PRIMARY KEY,
id SERIAL PRIMARY KEY,
discord_server_id BIGINT REFERENCES discord_server(discord_server_id) ON DELETE CASCADE,
mode VARCHAR(20) NOT NULL CHECK (mode IN ('whitelist', 'blacklist'))
mode VARCHAR(20) NOT NULL DEFAULT 'whitelist' CHECK (mode IN ('whitelist', 'blacklist'))
);

CREATE TABLE IF NOT EXISTS url_cleaner_channels (
Expand Down

0 comments on commit 29a6779

Please sign in to comment.