Преглед на файлове

Added date stamp to stdout for logging.

Miek Stagl преди 5 години
родител
ревизия
33d070c8a3
променени са 1 файла, в които са добавени 3 реда и са изтрити 2 реда
  1. 3 2
      index.py

+ 3 - 2
index.py

@@ -223,7 +223,7 @@ class MLSDATA:
       if not search.county.capitalize() in self.counties:  ### FIX for lower()
         print("County " + search.county + " not regognized.  Exiting")
       else:
-        print("Scanning for results in " + search.county + " using the " + self.mlstype.upper() + " database.")
+        print("Scanning for results in " + search.county + " using the " + self.mlstype.upper() + " database on: " + str(datetime.datetime.now()))
         if self.mlstype == 'gmls':
           list = self.gmlsparser(self.stringbuilder(search), search.county)
         return list
@@ -386,6 +386,7 @@ if __name__ == '__main__':
 
 #  for county in ['Jackson']:							### FIX
   for county in gmls.counties:							### FIX
+#    mysearch = Search(county, type=['farm', 'house', 'land'], upper_price=100000)		### FIX
     mysearch = Search(county, type=['farm', 'house', 'land'], upper_price=525000)		### FIX
     mydata = gmls.getmlsdata(mysearch)
 
@@ -396,7 +397,7 @@ if __name__ == '__main__':
   gmls.email()
 
 print()
-print(str(len(gmls.new_listings)) + " new properties found!")
+print(str(len(gmls.new_listings)) + " new properties found! " + str(datetime.datetime.now()))
 print()
 for listing in gmls.new_listings:
   print(listing.MLS, listing.address)