Commit b9bdfab5 by arjun.b

Project structure changed

parent f2e4c2ee
...@@ -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
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)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment