Just deleted about 400 bot accounts and a bunch of spam. To mitigate this in the future, we've enabled reCaptcha on signup. Let me know if someone got caught in the crossfire.

Commit 1bf315b0 authored by Rob Nelson's avatar Rob Nelson
Browse files

Ensure the needed keys are present in bdstorage.json.

parent a9c24ace
......@@ -119,6 +119,11 @@ class BandagedBetterDiscordAddon(Addon):
with open(bdstorage_filename, 'r') as f:
bdstorage = json.load(f)
for plid in ENABLE_BY_DEFAULT:
curbase = bdstorage
for key in ['settings', 'stable', 'plugins', plid]:
if key not in curbase:
curbase[key] = {}
bdstorage['settings']['stable']['plugins'][plid] = True
with open(bdstorage_filename, 'w') as f:
json.dump(bdstorage, f)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment