- 매수하지 않아도 중복 종목에 추가
This commit is contained in:
@@ -126,8 +126,13 @@ namespace NewsCrawler
|
||||
public void AddDuplicatedList(string strCode, string strName)
|
||||
{
|
||||
CODE_VALUE Result = m_CodeList.Find(s => s.m_strCode == strCode);
|
||||
if(Result != null)
|
||||
Result.m_enType |= CODE_TYPE.DUPLICATED;
|
||||
if(Result == null)
|
||||
return;
|
||||
|
||||
if((Result.m_enType & CODE_TYPE.DUPLICATED) == CODE_TYPE.DUPLICATED)
|
||||
return;
|
||||
|
||||
Result.m_enType |= CODE_TYPE.DUPLICATED;
|
||||
|
||||
string strPath = Util.GetConfigPath()+"/code-duplicated.txt";
|
||||
File.AppendAllText(strPath, strName+Environment.NewLine);
|
||||
|
||||
Reference in New Issue
Block a user