Skip to content

Commit

Permalink
update mongo uri
Browse files Browse the repository at this point in the history
  • Loading branch information
dkat0 committed Jan 8, 2025
1 parent 546ae53 commit 99b4233
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions backend/api/app.py
Original file line number Diff line number Diff line change
@@ -1,15 +1,10 @@

import json
from flask import Flask, jsonify, request, url_for, redirect
from flask_pymongo import PyMongo
import os
import configparser

config = configparser.ConfigParser()
config.read(os.path.abspath(os.path.join("config.ini")))

app = Flask(__name__)
app.config["MONGO_URI"] = config['PROD']['DB_URI']
app.config["MONGO_URI"] = os.environ.get('NEW_MONGO_URI')
mongo = PyMongo(app)

# Define the mapping between category and MongoDB collections
Expand Down

0 comments on commit 99b4233

Please sign in to comment.