From c3a896e7f6492dba941b20d2cfecad7b2dbfcdcf Mon Sep 17 00:00:00 2001 From: iriska-gri <79623434+iriska-gri@users.noreply.github.com> Date: Fri, 13 Oct 2023 15:22:27 +0300 Subject: [PATCH] =?UTF-8?q?=D0=A1=D1=82=D0=B0=D1=82=D0=B8=D1=81=D1=82?= =?UTF-8?q?=D0=B8=D0=BA=D0=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- db.sqlite3 | Bin 360448 -> 360448 bytes front/package-lock.json | 27 +++++++++++++++++++++++++++ front/package.json | 2 ++ front/src/views/AboutPortalPage.vue | 7 +++++-- watcher/views.py | 6 ++---- 5 files changed, 36 insertions(+), 6 deletions(-) diff --git a/db.sqlite3 b/db.sqlite3 index c24f71e55ed047dca725f95e90a6bfa6ebdb90f5..2023f8c6b8ec8def57fc225c01bf96b59dec88d4 100644 GIT binary patch delta 48 zcmZo@5Nl`=7" + } + }, "node_modules/chokidar": { "version": "3.5.3", "resolved": "https://registry.npmjs.org/chokidar/-/chokidar-3.5.3.tgz", @@ -12845,6 +12863,15 @@ "@vue/shared": "3.3.4" } }, + "node_modules/vue-chartjs": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/vue-chartjs/-/vue-chartjs-5.2.0.tgz", + "integrity": "sha512-d3zpKmGZr2OWHQ1xmxBcAn5ShTG917+/UCLaSpaCDDqT0U7DBsvFzTs69ZnHCgKoXT55GZDW8YEj9Av+dlONLA==", + "peerDependencies": { + "chart.js": "^4.1.1", + "vue": "^3.0.0-0 || ^2.7.0" + } + }, "node_modules/vue-component-type-helpers": { "version": "1.8.8", "resolved": "https://registry.npmjs.org/vue-component-type-helpers/-/vue-component-type-helpers-1.8.8.tgz", diff --git a/front/package.json b/front/package.json index c0543f0b9..5aa7a4ad6 100644 --- a/front/package.json +++ b/front/package.json @@ -21,10 +21,12 @@ "@vuelidate/core": "^2.0.3", "@vuelidate/validators": "^2.0.3", "axios": "^1.4.0", + "chart.js": "^4.4.0", "date-fns": "^2.30.0", "pinia": "^2.0.23", "roboto-fontface": "*", "vue": "^3.2.0", + "vue-chartjs": "^5.2.0", "vue-jwt-decode": "^0.1.0", "vue-router": "^4.0.0", "vue-scrollto": "^2.20.0", diff --git a/front/src/views/AboutPortalPage.vue b/front/src/views/AboutPortalPage.vue index 2a7a8d3fe..36e3de291 100644 --- a/front/src/views/AboutPortalPage.vue +++ b/front/src/views/AboutPortalPage.vue @@ -7,8 +7,8 @@ -{{visiting}} - + + @@ -34,6 +34,9 @@ + + Пользователь + Страница diff --git a/watcher/views.py b/watcher/views.py index b5fa5ee02..988dc1d2b 100644 --- a/watcher/views.py +++ b/watcher/views.py @@ -23,10 +23,8 @@ class Counter(ListAPIView): pUser = pd.DataFrame.from_records(users) pOutUser = pd.DataFrame.from_records(outuser) h = pUser.merge(pOutUser, how="left", left_on="user__username", right_on="login") - # print(pUser, '!!!!!!!!!!!!!!!!!!!!!!!!') - # print(pOutUser, '???????????????????????') - print(h.loc[h['login']=='9966-00-125']['fio'].unique()[0], '11111111111111111111111111111') - # print(h.nunique(login='9966-00-125')) + + for x in users: