Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
easybistro-api-docker
Project
Project
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
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Sasit Wiratjinda
easybistro-api-docker
Commits
57388136
Commit
57388136
authored
Nov 26, 2022
by
Sasit Wiratjinda
🤕
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update database.py
parent
334c4fc7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
database.py
server/service/database.py
+1
-1
No files found.
server/service/database.py
View file @
57388136
import
pymongo
import
pymongo
def
get_connection
(
collection
:
str
):
def
get_connection
(
collection
:
str
):
# client = pymongo.MongoClient("mongodb://easybistro:xejP3257@13.212.117.20:27017/Easybistro?authSource=admin&retryWrites=true&w=majority")
client
=
pymongo
.
MongoClient
(
'mongodb://easybistro:xejP3257@easybistro-database/Easybistro?authSource=admin&retryWrites=true&w=majority'
)
client
=
pymongo
.
MongoClient
(
'mongodb://easybistro:xejP3257@easybistro-database/Easybistro?authSource=admin&retryWrites=true&w=majority'
)
return
client
[
'easybistro'
][
collection
]
return
client
[
'easybistro'
][
collection
]
...
...
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