fix: Only refresh plugins on plugin page.

Also added link to auction from bids
This commit is contained in:
2025-01-29 22:50:41 +11:00
parent 76dd5a429b
commit 1962c9345e
3 changed files with 6 additions and 6 deletions

View File

@@ -6,9 +6,8 @@ import hashlib
import subprocess
def listPlugins():
def listPlugins(update=False):
plugins = []
customPlugins = []
for file in os.listdir("plugins"):
if file.endswith(".py"):
if file != "main.py":
@@ -36,7 +35,7 @@ def listPlugins():
if not os.path.exists(f"customPlugins/{importPath}"):
if os.system(f"git clone {importurl} customPlugins/{importPath}") != 0:
continue
else:
elif update:
if os.system(f"cd customPlugins/{importPath} && git pull") != 0:
continue