Update presets.py

main
witchdocsec 2024-05-15 22:33:26 +01:00 committed by GitHub
parent 05205ffa95
commit 65cdbc707a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -45,7 +45,7 @@ def make_preset(name,browser,url,userfield,passwordfield,formnumber,button,targe
def load_preset(args):
p=session.query(Preset).filter(Preset.name==args.presetname).first()
attrs=["browser","url","userfield","passwordfield","formnumber","button","targeturl"]
attrs=Preset.__table__.columns.keys()
for attr in attrs:
if not hasattr(args,attr):
setattr(args,attr,getattr(p,attr))