Skip to content

Commit

Permalink
Merge pull request #1138 from Bidaya0/main
Browse files Browse the repository at this point in the history
fix(dataclean): change update logic.
  • Loading branch information
Bidaya0 committed Nov 25, 2022
2 parents 061e24f + 51d5851 commit 406b579
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dongtai_web/systemmonitor/data_clean.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ def post(self, request):
day_of_month='*',
month_of_year='*',
)
PeriodicTask.objects.get_or_create(
PeriodicTask.objects.update_or_create(
name='data clean functions', # simply describes this periodic task.
defaults={
'crontab': schedule, # we created this above.
Expand Down

0 comments on commit 406b579

Please sign in to comment.