From 60b63307baf3cc7849c8886fbd1b57b99dbbe145 Mon Sep 17 00:00:00 2001 From: Adrian Charkiewicz Date: Tue, 19 Apr 2022 23:02:24 +0200 Subject: [PATCH] expanded to take more parameters than only name (in the future) --- data/.~lock.dialog-17-04-02.tsv# | 1 - src/components/DST.py | 5 +++-- 2 files changed, 3 insertions(+), 3 deletions(-) delete mode 100644 data/.~lock.dialog-17-04-02.tsv# diff --git a/data/.~lock.dialog-17-04-02.tsv# b/data/.~lock.dialog-17-04-02.tsv# deleted file mode 100644 index 39fbc12..0000000 --- a/data/.~lock.dialog-17-04-02.tsv# +++ /dev/null @@ -1 +0,0 @@ -,DESKTOP-QF2J2E3/riraa,DESKTOP-QF2J2E3,19.04.2022 01:25,file:///C:/Users/riraa/AppData/Roaming/LibreOffice/4; \ No newline at end of file diff --git a/src/components/DST.py b/src/components/DST.py index 2a662b1..f046e91 100644 --- a/src/components/DST.py +++ b/src/components/DST.py @@ -10,8 +10,9 @@ class DST: # iterate over speech acts for k, v in userActs['inform'].items(): - if k == 'name': - self.slots['name'] = v + for slot in self.slots: + if slot == k: + self.slots['name'] = v print(self.slots) # returns all slots