Index: trunk/MagicSoft/Mars/datacenter/macros/createdataset.C
===================================================================
--- trunk/MagicSoft/Mars/datacenter/macros/createdataset.C	(revision 7166)
+++ trunk/MagicSoft/Mars/datacenter/macros/createdataset.C	(revision 7167)
@@ -16,5 +16,5 @@
 !
 !
-!   Author(s): Daniela Dorner, 05/2005 <mailto:dorner@astro.uni-wuerzburg.de>
+!   Author(s): Daniela Dorner, 06/2005 <mailto:dorner@astro.uni-wuerzburg.de>
 !
 !   Copyright: MAGIC Software Development, 2000-2005
@@ -82,5 +82,5 @@
     fouthtml << source << endl;
     fouthtml << "</td><td>" << endl;
-    if (wobble.Contains("Y"))
+    if (wobble!="N")
         fouthtml << "wobble," << endl;
     if (startdate=="0000-00-00 00:00:00")
@@ -89,5 +89,5 @@
         fouthtml << "from " << startdate << " to " << stopdate << endl;
     if (cal)
-        fouthtml << "only data processed to the imgpar is taken into account" << endl;
+        fouthtml << ", only data processed to the imgpar is taken into account" << endl;
     fouthtml << "</td></tr>" << endl;
 
@@ -100,6 +100,10 @@
     if (cal)
         query +=" left join SequenceProcessStatus on Sequences.fSequenceFirst=SequenceProcessStatus.fSequenceFirst ";
-    query +=Form(" where fSourceName like '%s%%' and fRunStart between '%s' and '%s'",
-                 source.Data(), startdate.Data(), stopdate.Data());
+    if (wobble=="N")
+        query +=Form(" where fSourceName like '%s%%' and fRunStart between '%s' and '%s'",
+                     source.Data(), startdate.Data(), stopdate.Data());
+    else
+        query +=Form(" where fSourceName like '%s%%' and fRunStart between '%s' and '%s'",
+                     wobble.Data(), startdate.Data(), stopdate.Data());
     if (cal)
         query +=" and not IsNull(fStar) ";
@@ -123,7 +127,7 @@
     delete res;
 
-    if (wobble.Contains("N"))
-    {
-        if (off.Contains("none"))
+    if (wobble=="N")
+    {
+        if (off=="none")
         {
             off  ="Off";
@@ -161,9 +165,9 @@
     }
 
-    if (wobble.Contains("N"))
+    if (wobble=="N")
         fout << "#" << flush;
     fout << "SourceName: " << source << endl;
     fout << "Catalog: /magic/datacenter/setup/magic_favorites.edb" << endl;
-    if (wobble.Contains("N"))
+    if (wobble=="N")
         fout << "#" << flush;
     fout << "WobbleMode: On" << endl << endl;
