~jcsackett/charmworld/bac-tag-constraints

« back to all changes in this revision

Viewing changes to charmworld/health.py

  • Committer: Curtis Hovey
  • Date: 2013-08-20 22:09:45 UTC
  • mfrom: (352.1.17 api3-search)
  • Revision ID: curtis@canonical.com-20130820220945-8fjbm6afsp7qnymm
Introduce API3.search.

Show diffs side-by-side

added added

removed removed

Lines of Context:
70
70
    try:
71
71
        from charmworld.views.api import API3
72
72
        api = API3(request)
73
 
        interesting = api.charms(path=['interesting'])['result']
 
73
        interesting = api.search(path=['interesting'])['result']
74
74
        if (interesting['new']
75
75
                and interesting['popular']
76
76
                and interesting['featured']):