Commits

Ada Young committed 9aa58e3

Changed ShowNews() a bit

  • Participants
  • Parent commits 7855339

Comments (0)

Files changed (1)

     results = cursor.fetchall()
     if len(results) > 0:
         (orgname, newsid, timestamp, author, recipient, subject, content) = results[0]
-        Note("""
+        news_item = """
 %s NEWS #%d
 Date: %s
 From: %s
 To  : %s
 Subj: %s
-%s""" % (orgname, newsid, timestamp, author, recipient, subject, content))
+%s""" % (orgname, newsid, timestamp, author, recipient, subject, content)
+        Note(news_item)
+        return news_item
     else:
         Note("NewsDB: No item with the given id was found in %s's news database." % orgname)