Skip to content

Store API key for requests

I have some classes in different .py files doing REST API calls to a service using a Bearer auth key. Since I don’t want to store the key in every class I would want to know how I should approach this. Where and how should I store the key? How should the classes using this key access it? Answer “B…

Not all parameters were used in the SQL statement Python – MySql

I want to check if the ID exists already but I get this error: Not all parameters were used in the SQL statement Code: Answer The second argument to execute() should be a sequence of values, one for each placeholder token %s in the query. You did pass a sequence, but not in the way you intended. Strings are s…

KivyMD DatePicker save multiple dates

I want that you can add and choose multiple dates. I tried to send a number with the button click button_nr but I don’t know how I can pass it to the on_save function, so that I can change the self.ids.date_label(button_nr).text . If somebody has a better idea how to save multiple dates I’m open f…