Cleanup
This commit is contained in:
@@ -90,8 +90,14 @@ namespace MarketData.Helper
|
|||||||
// Single threaded method, use for debugging a single symbol fetch without going through the queue
|
// Single threaded method, use for debugging a single symbol fetch without going through the queue
|
||||||
public static void LoadAnalystPriceTargetEx(String symbol,DateTime modified)
|
public static void LoadAnalystPriceTargetEx(String symbol,DateTime modified)
|
||||||
{
|
{
|
||||||
if (!AnalystPriceTargetDA.CheckAnalystPriceTargetModifiedOn(symbol, modified)) LoadAnalystPriceTargetEx(symbol);
|
if (!AnalystPriceTargetDA.CheckAnalystPriceTargetModifiedOn(symbol, modified))
|
||||||
else MDTrace.WriteLine(LogLevel.DEBUG,"Already have analyst price target for '"+symbol+"' on "+Utility.DateTimeToStringMMHDDHYYYY(modified));
|
{
|
||||||
|
LoadAnalystPriceTargetEx(symbol);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
MDTrace.WriteLine(LogLevel.DEBUG,"Already have analyst price target for '"+symbol+"' on "+Utility.DateTimeToStringMMHDDHYYYY(modified));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
public static void LoadAnalystPriceTargetEx(String symbol)
|
public static void LoadAnalystPriceTargetEx(String symbol)
|
||||||
{
|
{
|
||||||
@@ -102,8 +108,10 @@ namespace MarketData.Helper
|
|||||||
if (null != analystPriceTarget)
|
if (null != analystPriceTarget)
|
||||||
{
|
{
|
||||||
AnalystPriceTargetDA.InsertAnalystPriceTarget(analystPriceTarget);
|
AnalystPriceTargetDA.InsertAnalystPriceTarget(analystPriceTarget);
|
||||||
|
MDTrace.WriteLine(LogLevel.DEBUG,"");
|
||||||
MDTrace.WriteLine(LogLevel.DEBUG,AnalystPriceTarget.Header);
|
MDTrace.WriteLine(LogLevel.DEBUG,AnalystPriceTarget.Header);
|
||||||
MDTrace.WriteLine(LogLevel.DEBUG,analystPriceTarget.ToString());
|
MDTrace.WriteLine(LogLevel.DEBUG,analystPriceTarget.ToString());
|
||||||
|
MDTrace.WriteLine(LogLevel.DEBUG,"");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
catch (Exception exception)
|
catch (Exception exception)
|
||||||
|
|||||||
Reference in New Issue
Block a user