Skip to content

Commit

Permalink
fix: metadata is not seralizable
Browse files Browse the repository at this point in the history
  • Loading branch information
Soulter committed Jul 29, 2024
1 parent 2b9934c commit 2f70b76
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion util/metrics.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,14 @@ async def upload_metrics(self):

for plugin in context.cached_plugins:
self.plugin_stats[plugin.metadata.plugin_name] = {
"metadata": plugin.metadata
"metadata": {
"plugin_name": plugin.metadata.plugin_name,
"plugin_type": plugin.metadata.plugin_type.value,
"author": plugin.metadata.author,
"desc": plugin.metadata.desc,
"version": plugin.metadata.version,
"repo": plugin.metadata.repo,
}
}

try:
Expand Down

0 comments on commit 2f70b76

Please sign in to comment.