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

corrected components import #82

Merged
merged 2 commits into from
Apr 19, 2023
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
10 changes: 5 additions & 5 deletions Rasa_Bot/actions/actions_closing_dialog.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
from . import validator
from virtual_coach_db.dbschema.models import Users
from virtual_coach_db.helper.helper_functions import get_db_session
from virtual_coach_db.helper.definitions import (ExecutionInterventionComponents,
ExecutionInterventionComponentsTriggers)
from virtual_coach_db.helper.definitions import (Components,
ComponentsTriggers)
from .definitions import REDIS_URL, DATABASE_URL
from .helper import (get_latest_bot_utterance, store_pf_evaluation_to_db, get_faik_text)

Expand Down Expand Up @@ -224,7 +224,7 @@ def name(self):

async def run(self, dispatcher, tracker, domain):
user_id = int(tracker.current_state()['sender_id']) # retrieve userID
new_intent = ExecutionInterventionComponentsTriggers.DELAYED_MSG_LAPSE
new_intent = ComponentsTriggers.DELAYED_MSG_LAPSE
celery.send_task('celery_tasks.trigger_intervention_component',
(user_id, new_intent),
eta=datetime.datetime.now() + datetime.timedelta(seconds=10))
Expand All @@ -239,7 +239,7 @@ def name(self):

async def run(self, dispatcher, tracker, domain):
user_id = int(tracker.current_state()['sender_id']) # retrieve userID
new_intent = ExecutionInterventionComponentsTriggers.DELAYED_MSG_SMOKE
new_intent = ComponentsTriggers.DELAYED_MSG_SMOKE
celery.send_task('celery_tasks.trigger_intervention_component',
(user_id, new_intent),
eta=datetime.datetime.now() + datetime.timedelta(seconds=10))
Expand Down Expand Up @@ -277,4 +277,4 @@ def name(self):

async def run(self, dispatcher, tracker, domain):
return [SlotSet("current_intervention_component",
ExecutionInterventionComponents.CLOSING_DIALOG)]
Components.CLOSING_DIALOG)]
2 changes: 1 addition & 1 deletion Rasa_Bot/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
git+https://github.com/PerfectFit-project/niceday_client@v0.1.3
protobuf==3.20.1 # temporary fix
protobuf==3.19.4
typeguard==2.13.3
chardet==3.0.4
multidict==5.2.0
Expand Down