From e3e7ad4c7d3fac74912b9410b2a2125c5140a3ca Mon Sep 17 00:00:00 2001 From: jacktjong Date: Fri, 4 Nov 2022 22:40:38 +0100 Subject: [PATCH] Commented + Tidying Up --- dashboard.py | 1 + dashboard_static/index.html | 20 ++------------------ dashboard_static/js/code.js | 7 +++++++ dashboard_static/js/events.js | 9 ++++++++- dashboard_static/lib/tweets.js | 10 +++++----- 5 files changed, 23 insertions(+), 24 deletions(-) diff --git a/dashboard.py b/dashboard.py index 43f9025..0c65428 100644 --- a/dashboard.py +++ b/dashboard.py @@ -41,6 +41,7 @@ def words(message): @event('tweet') def generate_tweet(ctx, e): tweet = dict(e.data) + # array of indexes that we want to pop from our tweets; this is to save memory pops = [ "display_text_range", "in_reply_to_status_id", diff --git a/dashboard_static/index.html b/dashboard_static/index.html index 6260692..72ae308 100644 --- a/dashboard_static/index.html +++ b/dashboard_static/index.html @@ -16,7 +16,6 @@ -