Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
1
1111
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
CI / CD Analytics
Repository Analytics
Value Stream Analytics
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
madhu.tr
1111
Commits
04176d2d
Commit
04176d2d
authored
Apr 08, 2022
by
madhu.tr
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
task 2
parent
63e0d6cf
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
15 deletions
+7
-15
scripts/services/task1.py
scripts/services/task1.py
+7
-15
No files found.
scripts/services/task1.py
View file @
04176d2d
from
fastapi
import
APIRouter
from
scripts.core.handler.task1
import
Task1
report_router
=
APIRouter
()
@
report_router
.
get
(
"/getdata1"
)
def
most_violation
():
return
Task1
()
.
read_violation
()
from
servicee
import
monthlyhumiditydata
from
fastapi
import
FastAPI
@
report_router
.
get
(
"/getdata2"
)
def
no_violation
():
return
Task1
()
.
read_noviolation
()
app
=
FastAPI
()
@
report_router
.
get
(
'/getdata'
)
def
get_data
():
return
Task1
()
.
Fnd
()
@
app
.
get
(
"/getData1"
)
def
monthlyhumiditydata1
():
fpath
,
fname
=
monthlyhumiditydata
()
@
report_router
.
get
(
'/getDetails'
)
def
checkdata
(
business_name
,
record_type
):
return
Task1
()
.
check_result
(
business_name
,
record_type
)
\ No newline at end of file
return
FileResponse
(
fpath
,
media_type
=
'application/octet-stream'
,
filename
=
fname
)
\ 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