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:
parent
1eaab893c8
commit
0a25f3a1d6
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user