Skip to content

Commit

Permalink
retest
Browse files Browse the repository at this point in the history
  • Loading branch information
hughhhh committed Apr 19, 2022
1 parent 5f43c5b commit eb324a0
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,7 @@ def upgrade_slice(slc: Slice):
if query_context.get("queries"):
queries = query_context["queries"]
for query in queries:
if query.get("extras", None).get("time_range_endpoints"):
del query["extras"]["time_range_endpoints"]
query.get("extras", {}).pop("time_range_endpoints", None)

slc.query_context = json.dumps(query_context)

Expand All @@ -74,7 +73,6 @@ def upgrade():
):
updated_slice = upgrade_slice(slc)
if updated_slice:
session.merge(slc)
slices_updated += 1

print(f"slices updated with no time_range_endpoints: {slices_updated}")
Expand Down

0 comments on commit eb324a0

Please sign in to comment.