Skip to content

Commit

Permalink
fix: 修复 migrate_schedule 判断问题 #7491
Browse files Browse the repository at this point in the history
  • Loading branch information
normal-wls committed Jun 17, 2024
1 parent 45302c6 commit 2c37143
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gcloud/analysis_statistics/data_migrate/tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -342,7 +342,7 @@ def migrate_schedule():

migrate_log = MigrateLog.objects.filter(id=1).first()
# 判断是否允许迁移
if migrate_log and migrate_log.migrate_switch:
if migrate_log and not migrate_log.migrate_switch:
logger.info("[migrate_schedule] the migrate_switch is closed!")
return

Expand Down

0 comments on commit 2c37143

Please sign in to comment.