Omit redundant str() casting

This commit is contained in:
Jeremy Stretch 2023-11-28 16:08:33 -05:00
parent 6fb01a0487
commit f25ff9277d
2 changed files with 2 additions and 2 deletions

View File

@ -229,7 +229,7 @@ class Job(models.Model):
model_name=self.object_type.model,
event=event,
data=self.data,
timestamp=str(timezone.now().isoformat()),
timestamp=timezone.now().isoformat(),
username=self.user.username,
retry=get_rq_retry()
)

View File

@ -115,7 +115,7 @@ def flush_webhooks(queue):
event=data['event'],
data=data['data'],
snapshots=data['snapshots'],
timestamp=str(timezone.now().isoformat()),
timestamp=timezone.now().isoformat(),
username=data['username'],
request_id=data['request_id'],
retry=get_rq_retry()