Hide possible future hwids unless parameter is given.
This commit is contained in:
@ -1,7 +1,10 @@
|
|||||||
#!/usr/bin/env python3
|
#!/usr/bin/env python3
|
||||||
# -*- coding: utf-8 -*-
|
# -*- coding: utf-8 -*-
|
||||||
|
|
||||||
|
# Supply any parameter to the script to also show possible future hwids.
|
||||||
|
|
||||||
from grmn import devices
|
from grmn import devices
|
||||||
|
import sys
|
||||||
|
|
||||||
last_id = 0
|
last_id = 0
|
||||||
missing = []
|
missing = []
|
||||||
@ -34,18 +37,21 @@ if len(cur_line) > 0:
|
|||||||
print()
|
print()
|
||||||
print("{} unknown ids.".format(missing_count))
|
print("{} unknown ids.".format(missing_count))
|
||||||
print("Last known id is: {:04}".format(last_id))
|
print("Last known id is: {:04}".format(last_id))
|
||||||
print("-" * 100)
|
|
||||||
print("Here are some possible future ids:")
|
|
||||||
|
|
||||||
print("./get_updates.py", end="")
|
|
||||||
|
|
||||||
cur_line = 0
|
if len(sys.argv) > 1:
|
||||||
for i in range(last_id + 1, last_id + 100):
|
print("-" * 100)
|
||||||
if i % 10 == 0 and cur_line > 5:
|
print("Here are some possible future ids:")
|
||||||
print()
|
|
||||||
print("./get_updates.py", end="")
|
|
||||||
cur_line = 0
|
|
||||||
print(" {:04}".format(i), end="")
|
|
||||||
cur_line += 1
|
|
||||||
|
|
||||||
print()
|
print("./get_updates.py", end="")
|
||||||
|
|
||||||
|
cur_line = 0
|
||||||
|
for i in range(last_id + 1, last_id + 200):
|
||||||
|
if i % 10 == 0 and cur_line > 5:
|
||||||
|
print()
|
||||||
|
print("./get_updates.py", end="")
|
||||||
|
cur_line = 0
|
||||||
|
print(" {:04}".format(i), end="")
|
||||||
|
cur_line += 1
|
||||||
|
|
||||||
|
print()
|
||||||
|
Reference in New Issue
Block a user