Browse Source

fix: 修复假数据构造

pull/8325/head
ibuler 3 years ago committed by 老广
parent
commit
327c6beab4
  1. 1
      utils/generate_fake_data/resources/terminal.py

1
utils/generate_fake_data/resources/terminal.py

@ -47,6 +47,7 @@ class SessionGenerator(FakeDataGenerator):
org_id=self.org.id,
date_start=date_start,
date_end=date_end,
is_finished=True
)
objects.append(Session(**data))
creates = Session.objects.bulk_create(objects, ignore_conflicts=True)

Loading…
Cancel
Save