]> git.parisson.com Git - teleforma.git/commitdiff
apply cleanup
authorGuillaume Pellerin <yomguy@parisson.com>
Tue, 10 Dec 2013 15:15:09 +0000 (16:15 +0100)
committerGuillaume Pellerin <yomguy@parisson.com>
Tue, 10 Dec 2013 15:15:09 +0000 (16:15 +0100)
teleforma/management/commands/teleforma-cleanup-testimonials.py

index b21b2d638b6afb0e7d4055faa9fc29c48d766be8..a288ee8c3cfa1586b66cd7de4105c286786991d8 100644 (file)
@@ -37,7 +37,7 @@ class Command(BaseCommand):
                         for testimonial1 in testimonials:
                             for testimonial2 in testimonials:
                                 if testimonial2.date_added < testimonial1.date_added:
-                                    #testimonial2.delete()
+                                    testimonial2.delete()
                                     print ('kept', testimonial1.title, testimonial1.date_added)
                                     print ('deleted', testimonial2.title, testimonial2.date_added)