mirror of
https://github.com/aclist/dztui.git
synced 2026-10-31 15:12:48 +01:00
This commit is contained in:
1 parent
8503d7e698
commit
401c8625ad
2 files changed
+12
-4
No files matched your search
+1
-4
@@ -122,10 +122,7 @@ def get_missing_mods(local: list, remote: list) -> list:
|
||||
def _hash(uid: str, use_custom: bool = False) -> str:
|
||||
md5 = hashlib.md5()
|
||||
md5.update(uid.encode("ascii"))
|
||||
if use_custom:
|
||||
prefix = "@C"
|
||||
else:
|
||||
prefix = "@"
|
||||
prefix = "@C" if use_custom else "@"
|
||||
return prefix + md5.hexdigest()[:8]
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user