Skip to content

Commit

Permalink
v1.0.7 - bug fix on empty repositories
Browse files Browse the repository at this point in the history
  • Loading branch information
batou9150 committed Oct 1, 2021
1 parent 029da31 commit f2bb80e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions gitlabui/gitlab.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,8 @@ def save(self, projects, refresh_tags_time=None):

def get_latest_tag(self, p):
res = self.get('/projects/' + str(p['id']) + '/repository/tags?order_by=name&search=^v').json()
if type(res) == dict:
return p
if len(res) == 0:
res = self.get('/projects/' + str(p['id']) + '/repository/tags?order_by=name').json()
if len(res) > 0:
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

setup(
name='gitlabui',
version='1.0.6',
version='1.0.7',
author='batou9150',
packages=find_packages(),
include_package_data=True,
Expand Down

0 comments on commit f2bb80e

Please sign in to comment.