Skip to content

Commit a22fc1e

Browse files
committed
Merge branch 'staging' into production
2 parents d7efdcd + 347d992 commit a22fc1e

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

bloomstack_core/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
# -*- coding: utf-8 -*-
22
from __future__ import unicode_literals
33

4-
__version__ = '2.2.2'
4+
__version__ = '2.2.3'

bloomstack_core/hook_events/delivery_trip.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
from erpnext.accounts.doctype.sales_invoice.sales_invoice import get_bank_cash_account
1111
from frappe.model.mapper import get_mapped_doc
1212
from frappe.utils import flt, nowdate, today
13+
from frappe.utils.password import get_decrypted_password
1314
from bloomstack_core.bloomtrace import make_integration_request
1415

1516
def generate_directions_url(delivery_trip, method):
@@ -29,7 +30,7 @@ def generate_directions_url(delivery_trip, method):
2930
route_list = route_list[0]
3031

3132
context = {
32-
"key": frappe.db.get_single_value("Google Settings", "api_key"),
33+
"key": get_decrypted_password("Google Settings", "Google Settings", "api_key"),
3334
"origin": quote(route_list[0], safe=''),
3435
"destination": quote(route_list[-1], safe=''),
3536
"waypoints": quote('|'.join(route_list[1:-1]), safe='')

0 commit comments

Comments
 (0)