From 59281afe90abca67fa3bb4a8999736f88d613dc6 Mon Sep 17 00:00:00 2001 From: palmtree5 <3577255+palmtree5@users.noreply.github.com> Date: Thu, 22 Mar 2018 15:11:27 -0800 Subject: [PATCH] [V3 Instance setup] cog identifiers are strings, not ints (#1448) --- redbot/setup.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/redbot/setup.py b/redbot/setup.py index 3223d9704..0de3ab768 100644 --- a/redbot/setup.py +++ b/redbot/setup.py @@ -230,7 +230,7 @@ async def edit_instance(): m = Mongo("Core", **storage_details) with core_data_file.open(mode="r") as f: core_data = json.loads(f.read()) - m.unique_cog_identifier = 0 + m.unique_cog_identifier = "0" collection = m.get_collection() await collection.update_one( {'_id': m.unique_cog_identifier}, @@ -243,7 +243,7 @@ async def edit_instance(): with p.open(mode="r") as f: cog_data = json.loads(f.read()) for ident in list(cog_data.keys()): - cog_m.unique_cog_identifier = int(ident) + cog_m.unique_cog_identifier = ident await cog_c.update_one( {"_id": cog_m.unique_cog_identifier}, update={"$set": cog_data[ident]},