X-Git-Url: https://apps.delaporte.us/gitweb/matrix-shop-bot.git/blobdiff_plain/b2ffe0819abac010cb03f02cad62f84eb2e0aa9c..b101ceec84269b137eaee1fe4257131fe8820630:/matrix_shop_bot/db.py?ds=sidebyside diff --git a/matrix_shop_bot/db.py b/matrix_shop_bot/db.py index ea8a3a7..cd075b9 100644 --- a/matrix_shop_bot/db.py +++ b/matrix_shop_bot/db.py @@ -103,8 +103,9 @@ class Data(): return item_id def assign_last_store(self, item_id): - store_id = self._get_pref_store_id(store_id) - return self.assign_store(item_id, store_id) + store_id = self._get_pref_store_id() + self.assign_store(item_id, store_id) + return store_id def assign_store(self, item_id, store_id): self._set_pref_store_id(store_id)