X-Git-Url: https://us-delaporte.pagekite.me/gitweb/matrix-shop-bot.git/blobdiff_plain/19bec36c1b5f7bcf005ca9b842dd902a32675ce0..18cd16d493680714ecf51c1ec3fd411788776a76:/matrix_shop_bot/db.py 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)