Changeset 8 in feed2telegram


Ignore:
Timestamp:
07/30/17 12:37:13 (7 years ago)
Author:
cheese
Message:

#1 fix bug for new entries

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/feed2telegram.py

    r6 r8  
    159159
    160160    def isSendingEntry(self, entry):
    161         if self.new_entries_only and self.last_modified:
    162             published = Datetime().setRfc2822(entry.published).toTimestamp()
    163             last      = Datetime().setRfc2822(self.last_modified).toTimestamp()
    164 
    165             if published > last:
     161        if self.new_entries_only:
     162            if self.last_modified:
     163                published = Datetime().setRfc2822(entry.published).toTimestamp()
     164                last      = Datetime().setRfc2822(self.last_modified).toTimestamp()
     165
     166                if published > last:
     167                    return True
     168            else:
    166169                return True
    167170
Note: See TracChangeset for help on using the changeset viewer.