Skip to content

Commit

Permalink
fix unique_constraint error (#40)
Browse files Browse the repository at this point in the history
  • Loading branch information
karimkawambwa authored May 10, 2019
1 parent 69aeaa8 commit e03b294
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,5 @@ def handle(self, *args, **options):
LastActiveNodes.objects.update_or_create(
node=Node(pk=data["sensor__node"]),
location=SensorLocation(pk=data["location"]),
last_data_received_at=data["timestamp"],
defaults={"last_data_received_at": data["timestamp"]},
)

0 comments on commit e03b294

Please sign in to comment.