lassie icon indicating copy to clipboard operation
lassie copied to clipboard

Default keys to be returned?

Open michaelhelmick opened this issue 12 years ago • 1 comments

So right now, lassie will always return the keys image, video and url

{
    'images': [],
    'url': 'http://somesitethatdoesnthaveanythingbutexists.com',
    'videos': []
}

Does anything think that if images or videos are empty before the time to return a response, that those keys should be popped out of the dict?

michaelhelmick avatar Aug 14 '13 00:08 michaelhelmick

I'd keep them with sensible default values, so the applications that import lassie can do a simple if check instead of calling get and then checking if the value evaluates to True.

yaph avatar Sep 05 '13 21:09 yaph