diff --git a/__pycache__/dashboard.cpython-310.pyc b/__pycache__/dashboard.cpython-310.pyc
index 203374c..fa27820 100644
Binary files a/__pycache__/dashboard.cpython-310.pyc and b/__pycache__/dashboard.cpython-310.pyc differ
diff --git a/dashboard_static/index.html b/dashboard_static/index.html
index 4badbf4..ffb7f08 100644
--- a/dashboard_static/index.html
+++ b/dashboard_static/index.html
@@ -90,7 +90,7 @@
-
+
@@ -110,23 +110,10 @@
POPULARITY FILTER
-
+
- -->
-
diff --git a/dashboard_static/js/code.js b/dashboard_static/js/code.js
index d636592..bb61aa5 100644
--- a/dashboard_static/js/code.js
+++ b/dashboard_static/js/code.js
@@ -1,3 +1,14 @@
+let selectedSports = []
+
+let filters = {
+ selectedSports: selectedSports,
+ searchedWords: [],
+ blockedWords: [],
+ popularityFilter: {},
+ sorted: "time",
+ order: "desc"
+}
+
function showFeeds() {
if ($(window).width() < 1280) {
if (selectedSports.length === 0) {
diff --git a/dashboard_static/js/events.js b/dashboard_static/js/events.js
index 4b2d1cd..83ed769 100644
--- a/dashboard_static/js/events.js
+++ b/dashboard_static/js/events.js
@@ -8,9 +8,6 @@ window.addEventListener('DOMContentLoaded', (event) => {
window.sessionStorage.setItem('tweets', JSON.stringify([]));
});
-
-let selectedSports = []
-
$(".sport").on("click", function() {
$(this).toggleClass("selected")
@@ -43,5 +40,10 @@ $(".sortby").on("click", function() {
$(".sort-dropdown-list li").on("click", function() {
$(".sort-dropdown").toggle()
-
+ filters.sorted = $(this).val()
+ $(window).trigger("test", filters)
+})
+
+$(window).on("test", function(e, filter) {
+ console.log(filter);
})
\ No newline at end of file
diff --git a/eca/__pycache__/arff.cpython-310.pyc b/eca/__pycache__/arff.cpython-310.pyc
index 3c2dc7f..dab7427 100644
Binary files a/eca/__pycache__/arff.cpython-310.pyc and b/eca/__pycache__/arff.cpython-310.pyc differ
diff --git a/eca/__pycache__/generators.cpython-310.pyc b/eca/__pycache__/generators.cpython-310.pyc
index c467613..01498c6 100644
Binary files a/eca/__pycache__/generators.cpython-310.pyc and b/eca/__pycache__/generators.cpython-310.pyc differ