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