Commits

Josh VanderLinden  committed db86a2f

Adjusted the ampersand code a little bit more and reversed the order of search results so the oldest tweets are shown first and the newest last

  • Participants
  • Parent commits d2905a7

Comments (0)

Files changed (1)

                     tweets.append(tweet)
                 log.debug(tweets)
 
+                # reverse the list so the oldest are first and the newest last
+                tweets.reverse()
+
                 if len(tweets):
                     self.SendTweets(user, tweets, do_not_update=True)
                 else:
         text = clean(text)
 
         # take care of any lingering ampersands
-        text = re.sub('&(?!\w+;)', '&', text)
+        text = re.sub('&(?!#?\w+;)', '&', text)
 
         return uhref + ': ' + text