aboutsummaryrefslogtreecommitdiff
path: root/scripts/p7s
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/p7s')
-rw-r--r--scripts/p7s/bitwarden.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/scripts/p7s/bitwarden.py b/scripts/p7s/bitwarden.py
index 9ce4d44c..f3f26dd1 100644
--- a/scripts/p7s/bitwarden.py
+++ b/scripts/p7s/bitwarden.py
@@ -47,6 +47,9 @@ class Bitwarden():
finally:
del os.environ["BW_SESSION"]
+ def sync(self):
+ subprocess.run([self.bw_command, "sync"], check=True)
+
def status(self):
return json.loads(subprocess.run([self.bw_command, "status"], check=True, stdout=subprocess.PIPE).stdout)
@@ -58,4 +61,5 @@ def get_item(server, email, uuid):
b = Bitwarden()
b.download()
with b.login(server, email):
+ b.sync()
return b.get_item(uuid)