]> git.parisson.com Git - teleforma.git/commitdiff
cleanup encode
authorGuillaume Pellerin <guillaume.pellerin@ircam.fr>
Wed, 17 Nov 2021 12:27:02 +0000 (13:27 +0100)
committerGuillaume Pellerin <guillaume.pellerin@ircam.fr>
Wed, 17 Nov 2021 12:27:02 +0000 (13:27 +0100)
teleforma/views/crfpa.py

index ac918331404ccd05b4df9ed24c7e2a41b2a43f4c..b1e11e02db8f76a2a59b171f31d729cef61071b9 100644 (file)
@@ -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