remove unused variable
authorFrédéric Péters <fpeters@0d.be>
Sat, 22 Feb 2020 18:36:34 +0000 (19:36 +0100)
committerFrédéric Péters <fpeters@0d.be>
Sat, 22 Feb 2020 18:36:34 +0000 (19:36 +0100)
chloro/phyll/views.py

index 6f0f0f7..6c8fdab 100644 (file)
@@ -123,7 +123,6 @@ class AtomFeed(Feed):
         return item.text
 
     def item_guid(self, item):
         return item.text
 
     def item_guid(self, item):
-        legacy_id = None
         for tag in item.tags.all():
             if tag.name.startswith('old-post-id-'):
                 return 'http://www.0d.be/posts/%s' % tag.name.split('-')[-1]
         for tag in item.tags.all():
             if tag.name.startswith('old-post-id-'):
                 return 'http://www.0d.be/posts/%s' % tag.name.split('-')[-1]