Skip to content

Commit 890ba92

Browse files
authored
Merge branch 'master' into dependabot/pip/pillow-7.1.0
2 parents 9e7172a + 9166014 commit 890ba92

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

geonode/version.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,7 @@ def get_version(version=None):
3636
# sub = .devN - for pre-alpha releases
3737
# | {a|b|c}N - for alpha, beta and rc releases
3838
git_changeset = get_git_changeset()
39-
parts = 2 if version[2] == 0 else 3
40-
main = '.'.join(str(x) for x in version[:parts])
39+
main = '.'.join(str(x) for x in version[:3])
4140
sub = ''
4241
if version[3] not in ('unstable', 'final'):
4342
mapping = {'beta': 'b', 'rc': 'rc'}

0 commit comments

Comments
 (0)