All three apps updated with newest library.

Database is now at ~/.local/share/dirnotes/dirnotes.db
and the config is at ~/.config/dirnotes/dirnotes.conf
Fixed double-write in dirnotes (gui) (it was re-entering .change())
This commit is contained in:
2022-11-02 00:01:38 -04:00
parent de894e57bf
commit 62027a2729
4 changed files with 157 additions and 129 deletions
+9 -8
View File
@@ -314,22 +314,23 @@ def file_display(f, listall, json, minimal):
print_d(f"list file details {fn}")
c,a,d = f.getData(mode)
c1,a1,d1 = f.getOtherData(mode)
diffFlag = '*' if c and (c != c1) else ''
if c or listall:
if c and (c != c1):
c += '*'
if not json:
if minimal:
print(f"{c}")
print(f"{c}{diffFlag}")
elif verbose:
print(f"{f.getName()}: {repr(c)}, {repr(a)}, {repr(d)}")
print(f"{f.getName()}: {repr(c)}{diffFlag}, {repr(a)}, {repr(d)}")
else:
print(f"{fn}: {repr(c)}")
print(f"{fn}: {repr(c)}{diffFlag}")
else:
entry = {"file":fn, "comment":c}
if verbose:
answer_json.append( {"file":f.getName(),"comment":c,"author":a,"date":d } )
else:
answer_json.append( {"file":fn,"comment":c} )
entry.update({"file":f.getName(),"author":a, "date": d})
if diffFlag:
entry["diffFlag"] = True
answer_json.append(entry)
def file_history(f,json):
db = f.db