Skip to content

Commit

Permalink
env for mongo collection
Browse files Browse the repository at this point in the history
  • Loading branch information
proffapt committed Nov 23, 2024
1 parent e19f9f7 commit da0dff3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions mftp/env.example.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
MONGO_DATABASE = "mftp"
MONGO_PORT = "27017"
MONGO_URI = f'mongodb://{MONGO_ROOT_USERNAME}:{MONGO_ROOT_PASSWORD}@db:{MONGO_PORT}'
MONGO_COLLECTION = "AY_2024-25"

# EMAIL (via SMTP)
## Senders' Credentials
Expand Down
2 changes: 1 addition & 1 deletion mftp/mftp.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
notice_db = db.NoticeDB(config={
'uri': env.MONGO_URI,
'db_name': env.MONGO_DATABASE
}, collection_name='AY_2024-25')
}, collection_name=env.MONGO_COLLECTION)
notice_db.connect()

notices = notice.fetch(headers, session, ssoToken, notice_db)
Expand Down

0 comments on commit da0dff3

Please sign in to comment.