1
0
mirror of https://github.com/altlinux/gpupdate.git synced 2025-03-21 18:50:38 +03:00

Changed work with object_shortcut

This commit is contained in:
Valery Sinelnikov 2023-12-07 11:02:38 +04:00
parent 1eaab893c8
commit 0a25f3a1d6

View File

@ -38,8 +38,7 @@ def storage_get_shortcuts(storage, sid, username=None):
shortcut_objs = storage.get_shortcuts(sid)
shortcuts = list()
for sc_obj in shortcut_objs:
sc = json2sc(sc_obj.shortcut)
for sc in shortcut_objs:
if username:
sc.set_expanded_path(expand_windows_var(sc.path, username))
shortcuts.append(sc)