diff --git a/ImportConsole/ShallerDBProcessor.cs b/ImportConsole/ShallerDBProcessor.cs index d6288e7..739d0a9 100644 --- a/ImportConsole/ShallerDBProcessor.cs +++ b/ImportConsole/ShallerDBProcessor.cs @@ -147,7 +147,7 @@ namespace FLocal.ImportConsole { private readonly static DateTime UNIX = new DateTime(1970, 1, 1, 0, 0, 0); public static void processDB(string filename) { - List> inserts = new List>(); + Dictionary inserts = new Dictionary(); HashSet discussionsIds = new HashSet(); using(StreamReader reader = new StreamReader(filename)) { int i=0; @@ -207,7 +207,7 @@ namespace FLocal.ImportConsole { if(data.ContainsKey("Layer")) { layer = PostLayer.LoadById(int.Parse(data["Layer"])); } - inserts.Add(new KeyValuePair(postId, () => { + inserts[postId] = () => { if(postId == main || postId == localMain) { //first post in the thread string legacyBoardName; @@ -240,7 +240,7 @@ namespace FLocal.ImportConsole { } post.Reply(user, title, body, layer, date, postId); } - })); + }; Console.Write("+"); } } catch(Exception e) {