22"""Summary"""
33# @Author: floepi
44# @Date: 2015-06-04 17:42:44
5- # @Last Modified by: Brady Endres
6- # @Last Modified time: 2021-04-06
5+ # @Last Modified by: Nícholas Kegler
6+ # @Last Modified time: 2021-05-03
77#!/usr/local/bin/python
88
99from __future__ import absolute_import , division , print_function
@@ -210,12 +210,13 @@ def create_project(self, account_id, name, description="", data={}):
210210
211211 return self ._get_json_response ("project" , postData = post_data )
212212
213- def get_projects (self , include_deleted = False , include_archived = False , limit = 100 , offset = 0 ):
213+ def get_projects (self , include_deleted = False , include_archived = False , include_tags = False , limit = 100 , offset = 0 ):
214214 """
215215 Get a list of currently active projects
216216
217217 :param include_deleted: boolean: if true, include deleted projects
218218 :param include_archived: boolean: if true, include archived projects
219+ :param include_tags: boolean: if true, include tag list on the project object
219220
220221 Returns:
221222 TYPE: Dict with meta information and an array of found projects
@@ -229,6 +230,9 @@ def get_projects(self, include_deleted=False, include_archived=False, limit=100,
229230 del get_params ["active" ]
230231 del get_params ["is_archived" ]
231232
233+ if include_tags :
234+ get_params ["include_tags" ] = 1
235+
232236 return self ._get_json_response ("project" , getData = get_params )
233237
234238 def get_projects_by_name (self , name ):
0 commit comments