mirror of
https://github.com/bombsquad-community/plugin-manager.git
synced 2025-10-08 14:54:36 +00:00
[ci] auto-format
This commit is contained in:
parent
af508d4bdb
commit
51788b4cab
1 changed files with 16 additions and 17 deletions
|
|
@ -1,19 +1,20 @@
|
|||
from urllib.request import urlopen
|
||||
import sys
|
||||
import json
|
||||
import ast
|
||||
plugman = dict(
|
||||
version="1.2.0"
|
||||
)
|
||||
|
||||
import ast
|
||||
import json
|
||||
import sys
|
||||
from urllib.request import urlopen
|
||||
|
||||
DEBUG = True
|
||||
|
||||
|
||||
def debug_print(*args, **kwargs):
|
||||
if DEBUG:
|
||||
print(*args, **kwargs)
|
||||
|
||||
|
||||
|
||||
def get_latest_version(plugin_name, category):
|
||||
base_url = "https://github.com/bombsquad-community/plugin-manager/raw/main/"
|
||||
endpoints = {
|
||||
|
|
@ -42,7 +43,6 @@ def get_latest_version(plugin_name, category):
|
|||
latest_version = next(iter(plugin["versions"])) # Gets first key
|
||||
return latest_version
|
||||
|
||||
|
||||
except Exception as e:
|
||||
raise e
|
||||
|
||||
|
|
@ -62,7 +62,6 @@ def update_plugman_json(version):
|
|||
)
|
||||
|
||||
|
||||
|
||||
def update_plugin_json(plugin_info, category):
|
||||
name = plugin_info["plugin_name"]
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue