This commit is contained in:
@@ -25,7 +25,7 @@ namespace NeDvachAPI.BufferControllers
|
||||
{
|
||||
if (threadId < Threads.Length + 1 & threadId != 0)
|
||||
{
|
||||
;
|
||||
|
||||
return Threads[threadId - 1];
|
||||
|
||||
}
|
||||
|
@@ -12,11 +12,11 @@ namespace NeDvachAPI.BufferControllers
|
||||
APIThreadBuffer.WriteThreadPreviewsBuffer(posts);
|
||||
Console.WriteLine("Заполняю буфер оп-постами");
|
||||
|
||||
for (int threadId = 1; threadId <= 4; threadId++)
|
||||
for (int threadId = 1; threadId <= posts.Count; threadId++)
|
||||
{
|
||||
APIThreadBuffer.WriteThreadsBuffer(DBchat.PostsList(board, threadId));
|
||||
Console.WriteLine("Добавляю буферизую тред " + threadId);
|
||||
APIThreadBuffer.WriteThreadsBuffer(DBchat.PostsList(board, threadId));
|
||||
}
|
||||
Console.WriteLine($@"Буферизую треды с {1} по {posts.Count}.");
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user