@@ -119,6 +119,11 @@ def public(
119119 def api (self , user = None ):
120120 return self .public (user , only_active = False )
121121
122+ def api_v2 (self , * args , ** kwargs ):
123+ # API v2 is the same as API v3 for .org, but it's
124+ # different for .com, this method is overridden there.
125+ return self .api (* args , ** kwargs )
126+
122127 def for_reindex (self ):
123128 """
124129 Get all versions that can be reindexed.
@@ -205,6 +210,11 @@ def public(self, user=None, project=None):
205210 def api (self , user = None ):
206211 return self .public (user )
207212
213+ def api_v2 (self , * args , ** kwargs ):
214+ # API v2 is the same as API v3 for .org, but it's
215+ # different for .com, this method is overridden there.
216+ return self .api (* args , ** kwargs )
217+
208218 def concurrent (self , project ):
209219 """
210220 Check if the max build concurrency for this project was reached.
@@ -305,3 +315,8 @@ def public(self, user=None):
305315
306316 def api (self , user = None ):
307317 return self .public (user )
318+
319+ def api_v2 (self , * args , ** kwargs ):
320+ # API v2 is the same as API v3 for .org, but it's
321+ # different for .com, this method is overridden there.
322+ return self .api (* args , ** kwargs )
0 commit comments