snap objects do not expose the associated project

Bug #2038342 reported by Andy Whitcroft
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Launchpad itself
Triaged
Low
Unassigned

Bug Description

When retrieving a snap object via the launchpad API the resulting object does not expose the associated project attribute.

I am currently using the below to extract it from the associated URL:

        project = recipe.self_link[len(recipe.owner.self_link):-(len(recipe.name) + 7)] # /+snap/
        if project == '':
            project = None

Tags: api
tags: added: api
Jürgen Gmach (jugmac00)
Changed in launchpad:
status: New → Triaged
importance: Undecided → Low
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.