We have a function

I converted the analysis code into a function that can be called from the rest of the app. I haven't hooked it up into the app yet, but I have been testing from the command line. At first I was having a problem that it would add duplicate tweets to the database, but I added a conditional check in the function to only add the tweet from the search results if the text is unique. In the future this will need to be changed to use the tweet ID rather than the text. I updated the template that displays the tweets to show the date/time of the last time the asset tweets were updated. This needs further formatting (both HTML and string formatting). The next things I would like to do include: - Getting more info from the tweets (user, id, date, etc.) and update our model - Add filtering options to the display page - Show aggregate score for the selected range - Add the asset symbol to the database as well, and update the function to search the asset name and symbol If you are logged in, you can view the assets here: https://sentimentextract.com/assets Then click on the asset button to see the tweets currently in the database.