mirror of
https://github.com/aclist/dztui.git
synced 2026-10-25 12:12:31 +01:00
This commit is contained in:
1 parent
00369837cb
commit
667203b4f9
1 file changed
+1
-2
+1
-2
@@ -240,7 +240,7 @@ def find_user_id(path: Path) -> str | None:
|
||||
v = vdf.load(f)
|
||||
users = v["users"]
|
||||
# NOTE: beta client: /package/beta
|
||||
last_user = next(iter(users))
|
||||
last_user = str(next(iter(users)))
|
||||
if len(users) == 1:
|
||||
return last_user
|
||||
last_stamp = int(users[last_user]["Timestamp"])
|
||||
@@ -249,7 +249,6 @@ def find_user_id(path: Path) -> str | None:
|
||||
if stamp > last_stamp:
|
||||
last_stamp = stamp
|
||||
last_user = user
|
||||
print(last_user)
|
||||
return last_user
|
||||
except Exception as e:
|
||||
logger.debug(e)
|
||||
|
||||
Reference in new issue
Block a user