diff --git a/backend/requirements.txt b/backend/requirements.txt index e03836c..5e11b05 100644 --- a/backend/requirements.txt +++ b/backend/requirements.txt @@ -11,7 +11,7 @@ idna==3.10 itsdangerous==2.2.0 Jinja2==3.1.5 MarkupSafe==3.0.2 -psycopg2==2.9.10 +psycopg2-binary==2.9.10 pycparser==2.22 PyJWT==2.10.1 python-dotenv==1.0.1 diff --git a/front-end/views/hashtag.mjs b/front-end/views/hashtag.mjs index 7b7e996..c73c094 100644 --- a/front-end/views/hashtag.mjs +++ b/front-end/views/hashtag.mjs @@ -15,6 +15,12 @@ import {createHeading} from "../components/heading.mjs"; // Hashtag view: show all tweets containing this tag function hashtagView(hashtag) { + if (state.currentHashtag !== hashtag) { + state.currentHashtag = hashtag; + state.hashtagBlooms = []; + apiService.getBloomsByHashtag(hashtag); + } + destroy(); apiService.getBloomsByHashtag(hashtag);