mirror of
https://github.com/murdos/musicbrainz-userscripts
synced 2024-11-10 13:14:16 +00:00
Stop padding version month and day with leading 0
as it blocks auto updates in Chrome at least.
This commit is contained in:
parent
1771336a34
commit
5da3cceb85
1 changed files with 1 additions and 1 deletions
|
@ -29,7 +29,7 @@ def make_version_line(old_value='0.0.0.0', spacing=' '*8, eol="\n"):
|
|||
version = [now.year, now.month, now.day, 1]
|
||||
if prev_version[:3] == version[:3]:
|
||||
version[3] = prev_version[3] + 1
|
||||
version_str = '%04d.%02d.%02d.%d' % tuple(version)
|
||||
version_str = '%04d.%d.%d.%d' % tuple(version)
|
||||
return ('// @version' + spacing + version_str + eol, version_str)
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue