Commit f0f6773e authored by Florent Chehab's avatar Florent Chehab

feat(backfill): prevent usage

parent 0d27e84c
Pipeline #63025 passed with stages
in 5 minutes and 12 seconds
......@@ -4,6 +4,8 @@
###### _TBD_
- [chore] Prevent usage of backfill script (will add inconsistencies if used again), but keep it in the repo.
## v2.9.0
###### _14 June 2020_
......
......@@ -43,6 +43,7 @@ class Command(BaseCommand):
)
def handle(self, *args, **options):
raise Exception("Backfill is not permetted anymore, use with caution.")
date_from = make_aware(datetime.strptime(options["date_from"], "%Y-%m-%d"))
date_to = make_aware(datetime.strptime(options["date_to"], "%Y-%m-%d"))
logger.info(f"Backfill from {date_from} to {date_to}.")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment