From 3a2ab06d0f33081790d3841e1fb9adf70e0849e4 Mon Sep 17 00:00:00 2001 From: Cobblestone Date: Mon, 27 Nov 2023 07:20:54 -0500 Subject: [PATCH] small change --- config.py | 52 -------------------------------------------------- routes/user.py | 2 +- 2 files changed, 1 insertion(+), 53 deletions(-) delete mode 100644 config.py diff --git a/config.py b/config.py deleted file mode 100644 index d4240e4..0000000 --- a/config.py +++ /dev/null @@ -1,52 +0,0 @@ -# Please move this to somewhere else before publicizing -# Also change the values if you don't wipe the commit history -# Yours truly, -Cobble - -from prod import PROD - -MOD_LOGS = "https://discord.com/api/webhooks/1102975443746959460/KTC6Ep2qfvnKXfmcr3lazHD2rT8NdFiJkx20H7ataxOVjQlbWJgSwiaRRVwsPY9fpCVT" -PROJ_LOGS = "https://discord.com/api/webhooks/1132308706202239056/MwfECKhw0-jvFek_7n1RLmakdCf4_veRqN3a7nU4F4nowJj7TF815JF2ybd8MjiCMzdg" -FILES_TOKEN = "torsoHowardzetta6" -BACKUPS_TOKEN = "supersecrettoken69" - -PYTHON_LOGGING_CONF = "[%(levelname)s] %(asctime)s - %(message)s" - - -class Discord: - client_id = 1121129295868334220 - client_secret = "BvADF8zUtHmhb1XfVAg9bdpfNithjqo3" - - -if PROD == 1: - DATA = "/var/DatapackHub/" - - class GitHub: - client_id = "8a0527a3da5b002db8c9" - client_secret = "c3dd98c1ed8acc65989824e70d61fd49cf60640d" - -else: - DATA = "./data/" - - class GitHub: - client_id = "cd983835f4e37148ba77" - client_secret = "56414b10caf5394328730deba6b41a6f38bfee8f" - - -valid_tags = [ - "Adventure", - "Magic", - "Minecraft but", - "Cursed", - "World Generation", - "Tools / Equipment", - "German", - "Recipe", - "Quality of Life", - "Items / Blocks", - "Cosmetic", - "Miscellaneous", - "Utility", - "Vanilla+", -] - -valid_types = ["datapack"] diff --git a/routes/user.py b/routes/user.py index 06766fa..a8d8c86 100644 --- a/routes/user.py +++ b/routes/user.py @@ -62,7 +62,7 @@ def user_badges_by_id(id: int) -> tuple[dict[str, Any] | str, int]: id=id, ) except sqlite3.Error: - util.weblogs.error("Whoopsie!", traceback.print_exc()) + util.weblogs.error("Whoopsie!", traceback.format_exc()) conn.rollback() return "Database Error", 500