중복 키워드 적용

This commit is contained in:
2018-01-01 18:32:02 +09:00
parent ae919bdc95
commit b4e3d0d87b
5 changed files with 104 additions and 9 deletions

View File

@@ -280,6 +280,12 @@ namespace NewsCrawler
break;
}
if (m_Condition.IsDuplicatedKeyword(NewsItem.m_strTitle) == true)
{
m_CodeList.AddDuplicatedList(NewsItem.m_Code.m_strCode, NewsItem.m_Code.m_strName);
Util.Log(Util.LOG_TYPE.DEBUG, string.Format("[DUPLICATED_KEYWORD] [{0}] {1}({2})", NewsItem.m_strRef, NewsItem.m_strTitle, NewsItem.m_Code.ToString()));
}
CheckPrice(NewsItem);
}
@@ -840,6 +846,11 @@ namespace NewsCrawler
m_CodeList.LoadSynonym();
}
public void ApplyDuplicatedKeyword()
{
m_Condition.LoadDuplicatedKeyword();
}
private void NewsForm_FormClosing(object sender, FormClosingEventArgs e)
{
Util.Clear();