Skip to content

Commit 45698cf

Browse files
committed
Remove useless function
1 parent 6d78409 commit 45698cf

1 file changed

Lines changed: 0 additions & 24 deletions

File tree

mergin/client.py

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -764,30 +764,6 @@ def project_versions(self, project_path, since=None, to=None):
764764
# filter out versions not within range
765765
filtered_versions = list(filter(lambda v: (num_since <= int_version(v["name"]) <= num_to), versions))
766766
return filtered_versions
767-
768-
def project_versions_count(self, project_path):
769-
770-
#TODO ask tomas if we should return the total count another
771-
772-
"""
773-
Get the total count of project's versions history.
774-
775-
:param project_path: Project's full name (<namespace>/<name>)
776-
:type project_path: String
777-
:param since: Version to track project history from
778-
:type since: String
779-
:param to: Version to track project history to
780-
:type to: String
781-
782-
:rtype: Integer
783-
"""
784-
start_page = 1 #we don't care which page to get the count
785-
per_page = 100 # server limit
786-
params = {"page": start_page, "per_page": per_page, "descending": False}
787-
resp = self.get("/v1/project/versions/paginated/{}".format(project_path), params)
788-
resp_json = json.load(resp)
789-
790-
return resp_json["count"]
791767

792768

793769
def download_project(self, project_path, directory, version=None):

0 commit comments

Comments
 (0)