Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
T
task8-aggregate
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
mohammed.shibili
task8-aggregate
Commits
3a694a1d
Commit
3a694a1d
authored
Feb 03, 2023
by
mohammed.shibili
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
corrections done
parent
a0eedd26
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
4 deletions
+3
-4
main.py
+1
-2
scripts/constants/const.py
+1
-1
scripts/service/ApiCalls.py
+1
-1
No files found.
main.py
View file @
3a694a1d
...
...
@@ -7,4 +7,4 @@ app = FastAPI()
app
.
include_router
(
files
)
app
.
include_router
(
extract
)
if
__name__
==
"__main__"
:
uvicorn
.
run
(
app
,
port
=
api_port
)
\ No newline at end of file
uvicorn
.
run
(
app
,
port
=
api_port
)
scripts/constants/const.py
View file @
3a694a1d
class
Endpoints
:
post_insert
=
"/insert_data"
get_violation
=
"/get_violation"
get_no
V
iolation
=
"/no_violation"
get_no
_v
iolation
=
"/no_violation"
get_to_exel
=
"/to_exel"
exel_file
=
"/data.xlsx"
folder
=
"temp"
...
...
scripts/service/ApiCalls.py
View file @
3a694a1d
...
...
@@ -21,7 +21,7 @@ async def get_violation():
# to get business names with no violations
@extract.get
(
Endpoints
()
.
get_no
V
iolation
,
tags
=
[
'Aggregation'
])
@extract.get
(
Endpoints
()
.
get_no
_v
iolation
,
tags
=
[
'Aggregation'
])
async
def
get_no_violation
():
print
(
OperationsOnApi
()
.
no_violation
())
return
"values extracted"
...
...
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