You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The definition of single in Stories is as follows:
defsingle(self, token, options={}):
"""Returns a single story by id (https://www.storyblok.com/docs/Delivery-Api/get-a-story#get-a-story-by-id) '/cdn/stories/:story_id' GET Args: token: Public token for published or private token for draft version """body=options['query'] if'query'inoptionselse {}
response=self.client.get('/cdn/stories/'+story_id+'', body, options)
returnresponse
As you can see, it uses story_id without that variable being defined - leading to a NameError.
The text was updated successfully, but these errors were encountered:
The definition of
single
inStories
is as follows:As you can see, it uses
story_id
without that variable being defined - leading to aNameError
.The text was updated successfully, but these errors were encountered: