From 6db0543fceda060af021af9cfc0b0bd4122f5ede Mon Sep 17 00:00:00 2001 From: Guillaume Pellerin Date: Wed, 17 Nov 2021 13:27:02 +0100 Subject: [PATCH] cleanup encode --- teleforma/views/crfpa.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/teleforma/views/crfpa.py b/teleforma/views/crfpa.py index ac918331..b1e11e02 100644 --- a/teleforma/views/crfpa.py +++ b/teleforma/views/crfpa.py @@ -449,12 +449,12 @@ class UserXLSBook(object): for user in users: students = Student.objects.filter(user=user, period=period) if students: - print(last_name.encode('utf8') + ' : updating') + print(last_name + ' : updating') student = students[0] break if not student: - print(last_name.encode('utf8') + ' : creating') + print(last_name + ' : creating') username = get_unique_username(first_name, last_name) user = User(first_name=first_name, last_name=last_name, email=email, username=username) user.save() @@ -525,7 +525,7 @@ class UserXLSBook(object): payments = Payment.objects.filter(student=student, month=month[0]) if not payments and amount: payment = Payment(student=student, value=float(amount), month=month[0], type=payment_type, online_paid=True) - print(last_name.encode('utf8') + ' : add payment') + print(last_name + ' : add payment') payment.save() student.restricted = False i += 2 -- 2.39.5