Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: hardcoding automation db and collection! #16

Merged
merged 1 commit into from
Aug 14, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

setup(
name="tc-analyzer-lib",
version="1.4.1",
version="1.4.2",
author="Mohammad Amin Dadgar, TogetherCrew",
maintainer="Mohammad Amin Dadgar",
maintainer_email="[email protected]",
Expand Down
6 changes: 2 additions & 4 deletions tc_analyzer_lib/automation/utils/model.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
from tc_analyzer_lib.utils.get_automation_env import get_automations_env
from tc_analyzer_lib.utils.mongo import MongoSingleton

from .interfaces import Automation
Expand All @@ -11,9 +10,8 @@ def __init__(self):
"""
instance = MongoSingleton.get_instance()
self.client = instance.get_client()
at_env_vars = get_automations_env()
self.db_name = at_env_vars["DB_NAME"]
self.collection_name = at_env_vars["COLLECTION_NAME"]
self.db_name = "Automation"
self.collection_name = "automations"

amindadgar marked this conversation as resolved.
Show resolved Hide resolved
def load_from_db(self, guild_id: str) -> list[Automation]:
"""
Expand Down
21 changes: 0 additions & 21 deletions tc_analyzer_lib/utils/get_automation_env.py

This file was deleted.

Loading