Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
J
JK_Report
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
CI / CD Analytics
Repository Analytics
Value Stream Analytics
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
vaisakh.nair
JK_Report
Commits
cfa9e671
Commit
cfa9e671
authored
May 13, 2023
by
vaisakh.nair
🎯
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.env changes
parent
c009609a
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
1 deletion
+2
-1
.env
.env
+1
-0
utils/create_report_sample.py
utils/create_report_sample.py
+1
-1
No files found.
.env
View file @
cfa9e671
...
@@ -6,6 +6,7 @@ MONGO_CLIENT=mongodb://admin:iLens%241234@192.168.3.181:2717/admin?connectTimeou
...
@@ -6,6 +6,7 @@ MONGO_CLIENT=mongodb://admin:iLens%241234@192.168.3.181:2717/admin?connectTimeou
MONGO_PORT=2717
MONGO_PORT=2717
MONGO_DATABASE=ilens_ai
MONGO_DATABASE=ilens_ai
MONGO_COLLECTION=eventLogs
MONGO_COLLECTION=eventLogs
MONGO_COLLECTION_EMAIL=
SMTP_HOST=
SMTP_HOST=
SMTP_PORT=
SMTP_PORT=
SMTP_USERNAME=
SMTP_USERNAME=
...
...
utils/create_report_sample.py
View file @
cfa9e671
...
@@ -146,7 +146,7 @@ class DailyReportGenerator:
...
@@ -146,7 +146,7 @@ class DailyReportGenerator:
# Connect to MongoDB and retrieve the email addresses from the collection
# Connect to MongoDB and retrieve the email addresses from the collection
client
=
MongoClient
(
os
.
environ
[
"MONGO_CLIENT"
])
client
=
MongoClient
(
os
.
environ
[
"MONGO_CLIENT"
])
db
=
client
[
os
.
environ
[
"MONGO_DATABASE"
]]
db
=
client
[
os
.
environ
[
"MONGO_DATABASE"
]]
collection
=
db
[
os
.
environ
[
"MONGO_COLLECTION"
]]
collection
=
db
[
os
.
environ
[
"MONGO_COLLECTION
_EMAIL
"
]]
emails
=
[]
emails
=
[]
documents
=
collection
.
find
()
documents
=
collection
.
find
()
...
...
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