diff --git a/src/back/accounts/backends.py b/src/back/accounts/backends.py index f5cb17208..a62039af5 100644 --- a/src/back/accounts/backends.py +++ b/src/back/accounts/backends.py @@ -68,7 +68,6 @@ class CustomAuth(ModelBackend): # try: user = DictEmployee.objects.get(login=username) - # print(user) if user.deleted!=1: homeuser, created = User.objects.get_or_create(username=username) @@ -92,10 +91,4 @@ class CustomAuth(ModelBackend): return homeuser - # except Exception as e: - # print (e) - # elif status_code==403: - # print('loh') - # return None - - + \ No newline at end of file diff --git a/src/back/general_vacation/excel.py b/src/back/general_vacation/excel.py index 94159a532..9808c968c 100644 --- a/src/back/general_vacation/excel.py +++ b/src/back/general_vacation/excel.py @@ -162,7 +162,7 @@ class roundExcel(): def excelvacation(self): - print('helooooooooooooooooooooooooooooooooooooo') + pass class loadExcel(): @@ -232,10 +232,6 @@ class loadExcel(): df3['d'] = df3['d'].astype(int) for ind in df3.index: - # print(df3['login'][ind]) -# + GeneralVacation.objects.create(login=df3['login'][ind], planned_date=df3['c'][ind], count_days=df3['d'][ind], type_of_vacation=df3['e'][ind], start_work_period=df3['f'][ind]) - # DailyRoundUp.objects.update_or_create(todaysDate=datetime.strptime(datas, '%d.%m.%Y').strftime('%Y-%m-%d'), - # user=df3['login'][ind], defaults={'position':base}) - - \ No newline at end of file + \ No newline at end of file diff --git a/src/back/general_vacation/views.py b/src/back/general_vacation/views.py index 7ae018ac2..bbe87483e 100644 --- a/src/back/general_vacation/views.py +++ b/src/back/general_vacation/views.py @@ -47,7 +47,7 @@ class DailyRoundUpAPIView(APIView): re = roundExcel(user) - print( request.GET.get("excel"), '-------------------------------') + file_path = getattr(re, request.GET.get("excel"))() # if request.GET.get("excel") == 'round': # file_path = re.excround() diff --git a/src/back/watcher/views.py b/src/back/watcher/views.py index 9cd32c064..55239876f 100644 --- a/src/back/watcher/views.py +++ b/src/back/watcher/views.py @@ -22,11 +22,6 @@ class Counter(ListAPIView): def get(self, request): """Не используется""" - # data = UserComment.objects.filter(Q(time_create__range=['2024-01-01', '2024-03-01']), ~Q(comment='')). \ - # values().order_by('-time_create') - # print(data,'---------------------------------------------------------') - - return Response('Не используется') diff --git a/src/front/src/components/UI/Calendar-full.vue b/src/front/src/components/UI/Calendar-full.vue index 038724713..c766e7212 100644 --- a/src/front/src/components/UI/Calendar-full.vue +++ b/src/front/src/components/UI/Calendar-full.vue @@ -41,20 +41,7 @@ export default { }, firstDay:'1', events: [], - // eventDidMount: function(info) { - - - // const dayEl = info.el.closest('.fc-daygrid-day') - // dayEl.style.backgroundColor = 'red' - // }, - // datesRender: function(info) { - - - // const start = info.view.activeStart - // const end = info.view.activeEnd - // let daysEls = document.querySelectorAll('.fc-daygrid-day') - // console.log(daysEls , ' info-------------'); - // }, + editable: true, headerToolbar: { @@ -88,9 +75,6 @@ export default { noEventsContent: 'На сегодня событий нет', selectable: true, - dateClick: (arg) => { - console.log(arg.date); - } }) function f_generalvacation() { diff --git a/src/front/src/components/UI/aboutportal/card-top-comment.vue b/src/front/src/components/UI/aboutportal/card-top-comment.vue index 67b60c70a..8bac81970 100644 --- a/src/front/src/components/UI/aboutportal/card-top-comment.vue +++ b/src/front/src/components/UI/aboutportal/card-top-comment.vue @@ -7,7 +7,10 @@ - + @@ -77,14 +80,12 @@