Преглед изворни кода

added a new app named analytics for analysis staff

Mohidul Islam пре 5 година
родитељ
комит
bdf2ea13b0

+ 1 - 0
.gitignore

@@ -4,6 +4,7 @@ __pycache__/
 *$py.class
 .vscode
 .idea
+review_data_set.csv
 # C extensions
 *.so
 client_secrets.json

+ 0 - 0
analytics/__init__.py


+ 3 - 0
analytics/admin.py

@@ -0,0 +1,3 @@
+from django.contrib import admin
+
+# Register your models here.

+ 5 - 0
analytics/apps.py

@@ -0,0 +1,5 @@
+from django.apps import AppConfig
+
+
+class AnalyticsConfig(AppConfig):
+    name = 'analytics'

+ 0 - 0
analytics/migrations/__init__.py


+ 3 - 0
analytics/models.py

@@ -0,0 +1,3 @@
+from django.db import models
+
+# Create your models here.

+ 3 - 0
analytics/tests.py

@@ -0,0 +1,3 @@
+from django.test import TestCase
+
+# Create your tests here.

+ 3 - 0
analytics/views.py

@@ -0,0 +1,3 @@
+from django.shortcuts import render
+
+# Create your views here.

+ 2 - 1
gauth/views.py

@@ -29,7 +29,8 @@ def get_token(request):
 def google_auth(request):
     user = User.objects.filter(username='admin@ercare').first()
     if not user:
-        return HttpResponse('<h1>You have to have a user account with username "admin@ercare". Please create a superuser using manage.py createsuperuser</h2>')
+        return HttpResponse('<h1>You have to have a user account with username "admin@ercare".'
+                            ' Please create a superuser using manage.py createsuperuser</h2>')
     return redirect('authorize')
 
 

+ 1 - 0
review_automation/settings.py

@@ -27,6 +27,7 @@ INSTALLED_APPS = [
     'review.apps.ReviewConfig',
     'dashboard.apps.DashboardConfig',
     'nlu_job.apps.NluJobConfig',
+    'analytics.apps.AnalyticsConfig',
 
     'crispy_forms',
     'django_crontab',

Разлика између датотеке није приказан због своје велике величине
+ 157 - 52
review_data_set.csv


Неке датотеке нису приказане због велике количине промена