[sysadmin-bin] Needs a datetime object rather than a string



commit 6b2974e14eb30246f04e750fdc02654e70d24743
Author: Andrea Veri <averi redhat com>
Date:   Wed Jan 27 11:04:54 2021 +0100

    Needs a datetime object rather than a string

 membership/foundation-operations.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/membership/foundation-operations.py b/membership/foundation-operations.py
index 8e7183e..44c0e77 100755
--- a/membership/foundation-operations.py
+++ b/membership/foundation-operations.py
@@ -138,7 +138,7 @@ def generate_membership_list():
 
 
 def send_form_letters(form_letter, email, name, *args):
-    today = str(dt.date.today())
+    today = dt.date.today()
 
     year_month = str(today.year) + '-' + str(today.month)
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]