Skip to content

Commit

Permalink
Merge branch 'fix-dataset-set-weight-shoji-order'
Browse files Browse the repository at this point in the history
  • Loading branch information
jjdelc committed Jan 31, 2025
2 parents be060c0 + 5ae1a13 commit d940c4f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scrunch/datasets.py
Original file line number Diff line number Diff line change
Expand Up @@ -2708,7 +2708,7 @@ def set_weight(self, variables=None):
graph = [self[v].url for v in variables]
if variables is None:
graph = []
payload = {'graph': graph}
payload = {"element": "shoji:order", "graph": graph}
return self.resource.variables.weights.patch(json.dumps(payload))

@property
Expand Down Expand Up @@ -2740,7 +2740,7 @@ def remove_weight(self, variables):
raise NameError("%s was not found in weights" % variables)

graph = [self[v].url for v in weights]
payload = {'graph': graph}
payload = {"element": "shoji:order", "graph": graph}
return self.resource.variables.weights.patch(json.dumps(payload))

def drop_rows(self, filter):
Expand Down

0 comments on commit d940c4f

Please sign in to comment.