From 9ab9ec5af107d96706ee94c8629a559682dd3638 Mon Sep 17 00:00:00 2001
From: flugschwein <flugschwein@gmx.at>
Date: Fri, 10 Apr 2020 11:19:56 +0200
Subject: [PATCH] Add current VPs at the end of build_vp_arrays()

---
 beem/snapshot.py | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/beem/snapshot.py b/beem/snapshot.py
index 77917ab3..ae9da8cb 100644
--- a/beem/snapshot.py
+++ b/beem/snapshot.py
@@ -552,6 +552,9 @@ class AccountSnapshot(list):
 
                 self.vp_timestamp.append(ts)
 
+        self.vp.append(self.account.get_voting_power() / 100)
+        self.downvote_vp(self.account.get_downvoting_power() / 100)
+
     def build_curation_arrays(self, end_date=None, sum_days=7):
         """ Build curation arrays"""
         self.curation_per_1000_SP_timestamp = []
-- 
GitLab