fixed history allowing adding the same clan twice

This commit is contained in:
Qubasa
2023-12-14 18:54:00 +01:00
parent cf899cbee9
commit 962a5641b4

View File

@@ -58,9 +58,7 @@ def add_history(uri: ClanURI) -> list[HistoryEntry]:
found = True
entry.last_used = datetime.datetime.now().isoformat()
if found:
break
if not found:
flake = inspect_flake(path, machine)
flake.flake_url = str(flake.flake_url)
history = HistoryEntry(