Skip to content

Commit

Permalink
Merge pull request #16 from TogetherCrew/fix/14-automation-empty-stri…
Browse files Browse the repository at this point in the history
…ng-guildid

fix: hardcoding automation db and collection!
  • Loading branch information
amindadgar authored Aug 14, 2024
2 parents e6973b7 + cb67840 commit 80c9111
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 26 deletions.
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"

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.

0 comments on commit 80c9111

Please sign in to comment.