Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
2
2020-045
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
2020-045
2020-045
Commits
78ff0b1c
Commit
78ff0b1c
authored
Dec 28, 2020
by
Pradeepika123
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
28/12/2020
parent
386629d4
Pipeline
#2002
failed with stages
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
1 deletion
+8
-1
RestingAPIProject/RestingApp/views.py
RestingAPIProject/RestingApp/views.py
+8
-1
No files found.
RestingAPIProject/RestingApp/views.py
View file @
78ff0b1c
...
...
@@ -18,7 +18,7 @@ from rest_framework.permissions import IsAuthenticated, IsAdminUser
from
rest_framework.response
import
Response
from
rest_framework.views
import
APIView
from
.models
import
Dog
,
RestingActivityPerDay
,
Position
,
Breed
,
DogStatus
,
RestingActivity
from
.serializers
import
DogSerializer
,
RestingctivityPerDaySerializer
,
PositionSerializer
,
BreedSerializer
,
\
from
.serializers
import
DogSerializer
,
Resting
A
ctivityPerDaySerializer
,
PositionSerializer
,
BreedSerializer
,
\
DogStatusSerializer
,
RestingActivitySerializer
from
.serializers
import
UserSerializer
import
calendar
...
...
@@ -660,5 +660,12 @@ def highlightsPerYear(request):
[{
'this year'
:
totalSum1
,
'last year'
:
totalSum2
,
'Highlights'
:
'equal to last year'
}],
safe
=
False
,
status
=
status
.
HTTP_200_OK
)
# class Main:
# def __init__(self):
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment