Commit b9bdfab5 by arjun.b

Project structure changed

parent f2e4c2ee
......@@ -4,4 +4,4 @@ port_no=8000
[mongo]
uri=mongodb://localhost:27017
[file_path]
path=temp/inspection.json
path=temp/excel_data.xlsx
import json
import pandas as pd
from scripts.config.application_config import file_path
from scripts.database.mongo.mongo_aggregation import inspection, project_fields
......@@ -13,4 +14,4 @@ class MongoHandler:
def create_excel_file():
file_data = project_fields()
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