Mathieu Dhondt
Mathieu Dhondt
When trying to PATCH with a list of dicts, I'm getting this error: ``` ERROR: test_bulk_update (api.tests.test_api.test_api_listings_bulk.TestBulkOperationsOnListings) ---------------------------------------------------------------------- Traceback (most recent call last): File "E:\Development\django_projects\api\api.git\api\tests\test_api\test_api_listings_bulk.py", line 92, in test_bulk_update response...
Is there a way possibility to do complex lookups via the url? Suppose I have a model "Car" with a field called "fuel_tank_capacity" that can be null. How can I...
It is not recommended to save a document with an id that contains spaces or other characters that are encoded in URL's. See https://github.com/typesense/typesense/issues/192 and https://github.com/typesense/typesense-website/pull/37 I was using the...
I'm trying to use URLExtract in a serverless function, but locking the cached TLD file provokes an error on this read-only system. [cachefile.py](https://github.com/lipoja/URLExtract/blob/master/urlextract/cachefile.py) tries to lock the file https://github.com/lipoja/URLExtract/blob/638c0e2d4d8fec077b13b0eefb2c96ffaee112be/urlextract/cachefile.py#L236 but...
Here's a simple example, using Python 3.10.4 and pony 0.7.16 from pony.orm import * db = Database() class Person(db.Entity): name = Required(str) db.bind(provider='sqlite', filename=':memory:') db.generate_mapping(create_tables=True) p1 = Person(name='John') Person.exists(lambda p:...
I'm trying to intercept my app adding an entity to a Set() to validate whether the related entity can be added, but it seems entity hooks are not the way....
Suppose I have this model: class Car(db.Entity): colour = Required(str) def before_insert(self): if self.colour != 'black': raise IntegrityError("You can choose any colour, as long as it's black.") My test looks...
Is there a way to have PonyORM automatically save UUID's to str in the SQLite db (and conversely cast them back to UUIDs when reading from the database)? I could...
Hi -- I just wanted to mention that the script works fine (I had to manually set the bridge IP and create a user through the Hue API myself though)...
Hi, I'm using axios to send a GET request to my flask-smorest endpoint. I know there's no real agreement on this spec-wise, but the request's querystring contains an array, and...