Skip to content

Commit

Permalink
Revert ID change
Browse files Browse the repository at this point in the history
  • Loading branch information
adammcmaster committed Apr 12, 2024
1 parent 4311c03 commit 1e34f64
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions starcatalogue/management/commands/create_all_zoo_subjects.py
Expand Up @@ -26,15 +26,15 @@ def handle(self, *args, **options):

star, _ = Star.objects.get_or_create(superwasp_id=superwasp_id)
lightcurve, _ = FoldedLightcurve.objects.get_or_create(
star__id=star.id,
star=star,
period_number=period_number,
)
if lightcurve.period_length is None:
lightcurve.period_length = period_length
lightcurve.save()

ZooniverseSubject.objects.get_or_create(
zooniverse_id=subject_id, lightcurve__id=lightcurve.id
zooniverse_id=subject_id, lightcurve=lightcurve
)

imported_total += 1
Expand Down

0 comments on commit 1e34f64

Please sign in to comment.