Skip to content

Commit

Permalink
Merge branch 'staging' into production
Browse files Browse the repository at this point in the history
  • Loading branch information
sahil28297 committed Jun 23, 2021
2 parents d7efdcd + 347d992 commit a22fc1e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion bloomstack_core/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# -*- coding: utf-8 -*-
from __future__ import unicode_literals

__version__ = '2.2.2'
__version__ = '2.2.3'
3 changes: 2 additions & 1 deletion bloomstack_core/hook_events/delivery_trip.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
from erpnext.accounts.doctype.sales_invoice.sales_invoice import get_bank_cash_account
from frappe.model.mapper import get_mapped_doc
from frappe.utils import flt, nowdate, today
from frappe.utils.password import get_decrypted_password
from bloomstack_core.bloomtrace import make_integration_request

def generate_directions_url(delivery_trip, method):
Expand All @@ -29,7 +30,7 @@ def generate_directions_url(delivery_trip, method):
route_list = route_list[0]

context = {
"key": frappe.db.get_single_value("Google Settings", "api_key"),
"key": get_decrypted_password("Google Settings", "Google Settings", "api_key"),
"origin": quote(route_list[0], safe=''),
"destination": quote(route_list[-1], safe=''),
"waypoints": quote('|'.join(route_list[1:-1]), safe='')
Expand Down

0 comments on commit a22fc1e

Please sign in to comment.