Skip to content

Commit 64f4885

Browse files
Merge pull request #70 from OS2borgerPC/69-uid-is-not-defined
Update fetch_and_install_core_scripts.py
2 parents 30636f3 + 5e0458a commit 64f4885

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

admin_site/system/management/commands/fetch_and_install_core_scripts.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ def handle(self, *args, **options):
2727
versionedName = f'{script.title} (version: {script.version})'
2828

2929
if script.uid and Script.objects.filter(uid=script.uid).exists():
30-
Script.objects.filter(uid=uid).delete()
30+
Script.objects.filter(uid=script.uid).delete()
3131

3232
if not Script.objects.filter(name=versionedName).exists():
3333
with open(script.sourcePath, 'rb') as file:
@@ -56,4 +56,4 @@ def handle(self, *args, **options):
5656
position=position,
5757
mandatory=parameter.mandatory
5858
)
59-
position += 1
59+
position += 1

0 commit comments

Comments
 (0)