Skip to content

Commit

Permalink
BREAKING-CHANGE: TagInfoUsedBy now exports in lists
Browse files Browse the repository at this point in the history
  • Loading branch information
sctop committed Apr 13, 2024
1 parent 3964ece commit 6b96bd7
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion data
Submodule data updated from e74ea8 to af5ae3
6 changes: 6 additions & 0 deletions data_model/actual_data/tag.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,12 @@ def register(self, file_loader: FileLoader, count_increase=True):
else:
raise ValueError

def to_json(self, no_used_by: bool = True):
return {
"data_track": [i.to_json_basic() for i in self.data_track.values()],
"data_background": [i.to_json_basic() for i in self.data_background.values()]
}


class TagInfo(FileLoader, UsedByRegisterMixin, InterpageMixin):
_color_to_css = {"green": "success", "blue": "primary",
Expand Down

0 comments on commit 6b96bd7

Please sign in to comment.