Index: /trunk/MagicSoft/Mars/Changelog
===================================================================
--- /trunk/MagicSoft/Mars/Changelog	(revision 7474)
+++ /trunk/MagicSoft/Mars/Changelog	(revision 7475)
@@ -26,4 +26,10 @@
      - small bugfix
      - improved logging
+
+   * datacenter/scripts/insertdatasets: 
+     - removed not needed variable
+
+   * datacenter/macros/getdolist.C: 
+     - small bugfix
 
 
Index: /trunk/MagicSoft/Mars/datacenter/macros/getdolist.C
===================================================================
--- /trunk/MagicSoft/Mars/datacenter/macros/getdolist.C	(revision 7474)
+++ /trunk/MagicSoft/Mars/datacenter/macros/getdolist.C	(revision 7475)
@@ -130,5 +130,5 @@
                     rc.GetValue(table+".TimerTable", ""),
                     rc.GetValue(table+".Primary", ""));
-    query+=Form(" WHERE ISNULL(%s) AND ISNULL(fFailedCode) AND ISNULL(fFailedComment) AND ISNULL(fStartTime) AND ISNULL(fFailedTime) ", column.Data());
+    query+=Form(" WHERE ISNULL(%s) AND ISNULL(fFailedCode) AND fFailedComment='NULL' AND ISNULL(fStartTime) AND ISNULL(fFailedTime) ", column.Data());
 
     TIter Next(&l);
Index: /trunk/MagicSoft/Mars/datacenter/scripts/insertdatasets
===================================================================
--- /trunk/MagicSoft/Mars/datacenter/scripts/insertdatasets	(revision 7474)
+++ /trunk/MagicSoft/Mars/datacenter/scripts/insertdatasets	(revision 7475)
@@ -40,5 +40,4 @@
 
 datetime=`date +%F-%H-%M-%S`
-year=`date +%Y`
 
 scriptlogpath=$logpath/run/insertdatasets/`date +%Y/%m`
