[sysadmin-bin] Has to remain of type str



commit 7ffb5013179addb75aba0f5385761e3c9556bd5d
Author: Andrea Veri <averi redhat com>
Date:   Fri Dec 18 10:47:17 2020 +0100

    Has to remain of type str

 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 972bea4..a97485a 100755
--- a/membership/foundation-operations.py
+++ b/membership/foundation-operations.py
@@ -61,7 +61,7 @@ foundationmembers = glu.get_uids_from_group('foundation')
 
 
 def send_renewal_emails():
-    _today = str(today).encode()
+    _today = str(today)
 
     for member in foundationmembers:
         ldap_fields = glu.get_attributes_from_ldap(member, 'FirstAdded', 'LastRenewedOn', 'mail', 'cn')


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