Lazy commit on scruffy.

This commit is contained in:
James Downie 2025-06-30 18:01:42 +10:00
parent ba4084c226
commit 1e4d8c18c7
2 changed files with 8 additions and 7 deletions

View File

@ -230,3 +230,5 @@ The hypothetical commands `show w' and `show c' should show the appropriate part
You should also get your employer (if you work as a programmer) or school, if any, to sign a “copyright disclaimer” for the program, if necessary. For more information on this, and how to apply and follow the GNU GPL, see <https://www.gnu.org/licenses/>.
The GNU General Public License does not permit incorporating your program into proprietary programs. If your program is a subroutine library, you may consider it more useful to permit linking proprietary applications with the library. If this is what you want to do, use the GNU Lesser General Public License instead of this License. But first, please read <https://www.gnu.org/philosophy/why-not-lgpl.html>.

View File

@ -150,9 +150,8 @@ if __name__ == "__main__":
prop = m.group(1)
rest = m.group(2)
if prop == "ab":
print("ding")
m2 = re.match(r"[+](\d+)\n[-](\d+)", rest)
p2 = "?"
m2 = re.match(r"[+](\d+)\s[-](\d+)", rest)
p2 = rest
if m2:
p2 = dict()
p2["push"] = int(m2.group(1))
@ -166,13 +165,13 @@ if __name__ == "__main__":
else:
n = n + 1
props["n"] = n
print(props)
dat[k] = n
dat[k] = props
with open(cache_file, "wt") as fout:
json.dump(dat, fout, indent = 2)
for k in dat:
status = "-" if dat[k] == 0 else dat[k]
print("{0} {1}".format(str(status).rjust(3), k))
status = "-" if dat[k]["n"] == 0 else dat[k]["n"]
print(f"{str(status).rjust(3)} {k}")
print(json.dumps(dat, indent = 2))
elif sys.argv[1] == "status":
dat = dict()
cache_file = filepath("status")