aboutsummaryrefslogtreecommitdiffstats
path: root/database.py
diff options
context:
space:
mode:
Diffstat (limited to 'database.py')
-rw-r--r--database.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/database.py b/database.py
index 3e52016..80edd3c 100644
--- a/database.py
+++ b/database.py
@@ -332,7 +332,7 @@ class PayGapDatabase:
f = cursor.fetchone()[0]
if f is not None:
- pay.append((section_name, f))
+ pay.append((section_name, float(f)))
return sorted(pay, key = operator.itemgetter(1), reverse = True)
@@ -347,5 +347,6 @@ if __name__ == "__main__":
host = "db"
with PayGapDatabase(host = host) as db:
- print(db.get_pay_by_sic_section("hourly", None))
+ print(db.get_years())
+ print(db.get_pay_by_sic_section("bonuses", None))