Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package mygnuhealth for openSUSE:Factory 
checked in at 2021-08-24 10:54:54
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/mygnuhealth (Old)
 and      /work/SRC/openSUSE:Factory/.mygnuhealth.new.1899 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "mygnuhealth"

Tue Aug 24 10:54:54 2021 rev:5 rq:913871 version:1.0.4

Changes:
--------
--- /work/SRC/openSUSE:Factory/mygnuhealth/mygnuhealth.changes  2021-07-25 
20:09:30.031427824 +0200
+++ /work/SRC/openSUSE:Factory/.mygnuhealth.new.1899/mygnuhealth.changes        
2021-08-24 10:55:51.924242071 +0200
@@ -1,0 +2,7 @@
+Mon Aug 23 16:25:06 UTC 2021 - Axel Braun <axel.br...@gmx.de>
+
+- version 1.0.4
+* fixes plotting issues when matplotlib uses unsorted records or dup
+  batch inputs.
+
+-------------------------------------------------------------------

Old:
----
  MyGNUHealth-1.0.3.tar.gz

New:
----
  MyGNUHealth-1.0.4.tar.gz

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ mygnuhealth.spec ++++++
--- /var/tmp/diff_new_pack.6qXzQR/_old  2021-08-24 10:55:52.492241319 +0200
+++ /var/tmp/diff_new_pack.6qXzQR/_new  2021-08-24 10:55:52.492241319 +0200
@@ -24,7 +24,7 @@
 %global __requires_exclude 
qmlimport\\((BloodPressure|FedLogin|GHBio|GHBol|GHPsycho|Glucose|LocalAccountManager|MoodEnergy|NetworkSettings|Osat|ProfileSettings|Weight|PoL|GHLifestyle|GHPhysicalActivity|GHNutrition|GHSleep|GHAbout)
 
 Name:           mygnuhealth
-Version:        %{majorver}.0.3
+Version:        %{majorver}.0.4
 Release:        0
 Summary:        The personal health record for the GNU Health system
 License:        GPL-3.0-only

++++++ MyGNUHealth-1.0.3.tar.gz -> MyGNUHealth-1.0.4.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/MyGNUHealth-1.0.3/MyGNUHealth.egg-info/PKG-INFO 
new/MyGNUHealth-1.0.4/MyGNUHealth.egg-info/PKG-INFO
--- old/MyGNUHealth-1.0.3/MyGNUHealth.egg-info/PKG-INFO 2021-07-25 
14:12:00.000000000 +0200
+++ new/MyGNUHealth-1.0.4/MyGNUHealth.egg-info/PKG-INFO 2021-08-22 
22:52:08.000000000 +0200
@@ -1,6 +1,6 @@
 Metadata-Version: 2.1
 Name: MyGNUHealth
-Version: 1.0.3
+Version: 1.0.4
 Summary: The GNU Health Personal Health Record
 Home-page: https://www.gnuhealth.org
 Author: Luis Falcon
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/MyGNUHealth-1.0.3/PKG-INFO 
new/MyGNUHealth-1.0.4/PKG-INFO
--- old/MyGNUHealth-1.0.3/PKG-INFO      2021-07-25 14:12:00.188571700 +0200
+++ new/MyGNUHealth-1.0.4/PKG-INFO      2021-08-22 22:52:09.219589000 +0200
@@ -1,6 +1,6 @@
 Metadata-Version: 2.1
 Name: MyGNUHealth
-Version: 1.0.3
+Version: 1.0.4
 Summary: The GNU Health Personal Health Record
 Home-page: https://www.gnuhealth.org
 Author: Luis Falcon
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/MyGNUHealth-1.0.3/mygnuhealth/about.py 
new/MyGNUHealth-1.0.4/mygnuhealth/about.py
--- old/MyGNUHealth-1.0.3/mygnuhealth/about.py  2021-07-24 22:50:30.000000000 
+0200
+++ new/MyGNUHealth-1.0.4/mygnuhealth/about.py  2021-08-22 22:43:10.000000000 
+0200
@@ -6,7 +6,7 @@
 #   Please read the COPYRIGHT and LICENSE files of the package
 ####################################################################
 
-__version__ = "1.0.3"
+__version__ = "1.0.4"
 
 __appname__ = "MyGNUHealth"
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/MyGNUHealth-1.0.3/mygnuhealth/bio.py 
new/MyGNUHealth-1.0.4/mygnuhealth/bio.py
--- old/MyGNUHealth-1.0.3/mygnuhealth/bio.py    2021-04-19 22:16:51.000000000 
+0200
+++ new/MyGNUHealth-1.0.4/mygnuhealth/bio.py    2021-08-22 19:16:45.000000000 
+0200
@@ -63,15 +63,16 @@
         bpsys = []
         bpdia = []
         bp_date = []
-        for element in bphist:
 
-            dateobj = datefromisotz(element['timestamp'])
+        # Sort the list of dictionaries using the timestamp as key
+        sorted_list = sorted(bphist, key=lambda sk: sk['timestamp'])
 
-            # Only print one value per day to avoid artifacts in plotting.
+        for element in sorted_list:
+
+            dateobj = datefromisotz(element['timestamp'])
             bp_date.append(dateobj)
             bpsys.append(element['systolic'])
             bpdia.append(element['diastolic'])
-            # end block
 
         fig, axs = plt.subplots(2)
 
@@ -100,7 +101,9 @@
         hrhist = self.read_hr()
         hr = []
         hr_date = []
-        for element in hrhist:
+        sorted_list = sorted(hrhist, key=lambda sk: sk['timestamp'])
+
+        for element in sorted_list:
             dateobj = datefromisotz(element['timestamp'])
             # Only print one value per day to avoid artifacts in plotting.
             hr_date.append(dateobj)
@@ -159,7 +162,10 @@
         glucosehist = self.read_glucose()
         glucose = []
         glucose_date = []
-        for element in glucosehist:
+
+        sorted_list = sorted(glucosehist, key=lambda sk: sk['timestamp'])
+
+        for element in sorted_list:
             dateobj = datefromisotz(element['timestamp'])
             # Only print one value per day to avoid artifacts in plotting.
             glucose_date.append(dateobj)
@@ -215,7 +221,10 @@
         weight = []
         weight_date = []
         bmi = []
-        for element in weighthist:
+
+        sorted_list = sorted(weighthist, key=lambda sk: sk['timestamp'])
+
+        for element in sorted_list:
             # dateobj = datetime.datetime.fromisoformat(element['timestamp'])
             dateobj = datefromisotz(element['timestamp'])
             # Only print one value per day to avoid artifacts in plotting.
@@ -281,7 +290,10 @@
         osathist = self.read_osat()
         osat = []
         osat_date = []
-        for element in osathist:
+
+        sorted_list = sorted(osathist, key=lambda sk: sk['timestamp'])
+
+        for element in sorted_list:
             dateobj = datefromisotz(element['timestamp'])
             osat_date.append(dateobj)
             osat.append(element['osat'])
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/MyGNUHealth-1.0.3/mygnuhealth/lifestyle.py 
new/MyGNUHealth-1.0.4/mygnuhealth/lifestyle.py
--- old/MyGNUHealth-1.0.3/mygnuhealth/lifestyle.py      2021-04-19 
22:41:13.000000000 +0200
+++ new/MyGNUHealth-1.0.4/mygnuhealth/lifestyle.py      2021-08-22 
19:22:15.000000000 +0200
@@ -53,7 +53,9 @@
         pa_anaerobic = []
         pa_steps = []
         pa_date = []
-        for element in pahist:
+        sorted_list = sorted(pahist, key=lambda sk: sk['timestamp'])
+
+        for element in sorted_list:
 
             dateobj = datefromisotz(element['timestamp'])
 
@@ -125,7 +127,10 @@
         nutri_calevening = []
         nutri_caltotal = []
         nutri_date = []
-        for element in nutrihist:
+
+        sorted_list = sorted(nutrihist, key=lambda sk: sk['timestamp'])
+
+        for element in sorted_list:
 
             dateobj = datefromisotz(element['timestamp'])
 
@@ -193,7 +198,10 @@
         sleephist = self.read_sleep()
         sleep_time = []
         sleep_date = []
-        for element in sleephist:
+
+        sorted_list = sorted(sleephist, key=lambda sk: sk['timestamp'])
+
+        for element in sorted_list:
 
             dateobj = datefromisotz(element['timestamp'])
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/MyGNUHealth-1.0.3/mygnuhealth/psycho.py 
new/MyGNUHealth-1.0.4/mygnuhealth/psycho.py
--- old/MyGNUHealth-1.0.3/mygnuhealth/psycho.py 2021-04-19 22:16:51.000000000 
+0200
+++ new/MyGNUHealth-1.0.4/mygnuhealth/psycho.py 2021-08-22 19:19:37.000000000 
+0200
@@ -50,7 +50,10 @@
         mood = []
         energy = []
         mood_date = []
-        for element in moodhist:
+
+        sorted_list = sorted(moodhist, key=lambda sk: sk['timestamp'])
+
+        for element in sorted_list:
 
             dateobj = datefromisotz(element['timestamp'])
 

Reply via email to