mirror of
https://github.com/murdos/musicbrainz-userscripts
synced 2024-11-10 13:14:16 +00:00
Make version fourth number start from 1
instead of 0 which blocks auto updates in Chrome at least.
This commit is contained in:
parent
092d3c9eb5
commit
1771336a34
1 changed files with 1 additions and 1 deletions
|
@ -26,7 +26,7 @@ To test without modifying file, use stdin:
|
|||
def make_version_line(old_value='0.0.0.0', spacing=' '*8, eol="\n"):
|
||||
prev_version = [int(x) for x in old_value.split('.')]
|
||||
now = datetime.datetime.utcnow()
|
||||
version = [now.year, now.month, now.day, 0]
|
||||
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)
|
||||
|
|
Loading…
Reference in a new issue