mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-12-23 11:12:47 +01:00
Misc: Update @version to match the new version format.
This commit is contained in:
parent
c84a7ac094
commit
4f7caa78e4
@ -315,7 +315,7 @@ class Misc(callbacks.Plugin):
|
||||
.decode('utf8'))
|
||||
version = data['commit']['committer']['date']
|
||||
# Strip the last 'Z':
|
||||
version = ''.join(version.rsplit('Z', 1)).replace(':', '-')
|
||||
version = version.rsplit('T', 1)[0].replace('-', '.')
|
||||
if sys.version_info[0] < 3 and isinstance(version, unicode):
|
||||
version = version.encode('utf8')
|
||||
versions[branch] = version
|
||||
|
Loading…
Reference in New Issue
Block a user