Skip to content

Commit

Permalink
Bug fix (typo)
Browse files Browse the repository at this point in the history
- "upload_user" is name of new field
  • Loading branch information
SchrodingersGat committed Jun 25, 2024
1 parent 30ac5a7 commit d2e0910
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions inventree_wireviz/processing.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ def create_attachment(self, part, attachment, comment, user):
model_id=part.pk,
attachment=attachment,
comment=comment,
user=user
upload_user=user
)
except Exception:
pass
Expand All @@ -88,7 +88,7 @@ def create_attachment(self, part, attachment, comment, user):
pass

# Attachment not created
return None
raise ValidationError("Error creating attachment file")

def prepend_templates(self):
"""Prepend the contents of the wireviz template files to the wireviz file."""
Expand Down
2 changes: 1 addition & 1 deletion inventree_wireviz/version.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
"""Version information for the inventree-wireviz plugin"""

PLUGIN_VERSION = "0.6.0"
PLUGIN_VERSION = "0.6.1"

0 comments on commit d2e0910

Please sign in to comment.