Explorar o código

Added total new listings to subject line of email for easier user experience.

Miek Stagl %!s(int64=5) %!d(string=hai) anos
pai
achega
fca2dd5a56
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      index.py

+ 1 - 1
index.py

@@ -343,7 +343,7 @@ class MLSDATA:
   def email(self):
     body = ''
     data = []
-    subj = "New Real Estate Listings for " + str(datetime.date.today())
+    subj = str(len(self.new_listings)) + " New Real Estate Listings for " + str(datetime.date.today())
     for listing in self.new_listings:
       row = []
       body += listing.MLS + " | " + listing.address + " | " + listing.acres + " | " + listing.price + " | " + listing.link + "\n"