Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
Mongo-Aggregations
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
arjun.b
Mongo-Aggregations
Commits
b9bdfab5
Commit
b9bdfab5
authored
Feb 03, 2023
by
arjun.b
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Project structure changed
parent
f2e4c2ee
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
4 deletions
+7
-4
.idea/sonarlint/issuestore/index.pb
+4
-2
conf/application.conf
+1
-1
scripts/core/handlers/mongo_handlers.py
+2
-1
No files found.
.idea/sonarlint/issuestore/index.pb
View file @
b9bdfab5
No preview for this file type
conf/application.conf
View file @
b9bdfab5
...
@@ -4,4 +4,4 @@ port_no=8000
...
@@ -4,4 +4,4 @@ port_no=8000
[
mongo
]
[
mongo
]
uri
=
mongodb
://
localhost
:
27017
uri
=
mongodb
://
localhost
:
27017
[
file_path
]
[
file_path
]
path
=
temp
/
inspection
.
json
path
=
temp
/
excel_data
.
xlsx
scripts/core/handlers/mongo_handlers.py
View file @
b9bdfab5
import
json
import
json
import
pandas
as
pd
import
pandas
as
pd
from
scripts.config.application_config
import
file_path
from
scripts.database.mongo.mongo_aggregation
import
inspection
,
project_fields
from
scripts.database.mongo.mongo_aggregation
import
inspection
,
project_fields
...
@@ -13,4 +14,4 @@ class MongoHandler:
...
@@ -13,4 +14,4 @@ class MongoHandler:
def
create_excel_file
():
def
create_excel_file
():
file_data
=
project_fields
()
file_data
=
project_fields
()
df
=
pd
.
DataFrame
(
file_data
)
df
=
pd
.
DataFrame
(
file_data
)
df
.
to_excel
(
"temp/excel_data.xlsx"
,
index
=
False
)
df
.
to_excel
(
file_path
,
index
=
False
)
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