forked from nathanwoodburn/firewalletbrowser
fix: Only refresh plugins on plugin page.
Also added link to auction from bids
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user