ran 2to3, evaluation (#13499)

* ran 2to3, evaluation

* Update update_gstin.py

* Update accounts_receivable_summary.py
This commit is contained in:
Achilles Rasquinha
2018-05-23 01:01:24 -05:00
committed by Nabin Hait
parent c141eb00ee
commit efb731941d
26 changed files with 74 additions and 58 deletions

View File

@@ -5,6 +5,7 @@ from __future__ import unicode_literals
import frappe
from frappe import _
from frappe.utils import add_to_date, getdate, get_datetime
from six import iteritems
time_slots = {
'12AM - 3AM': '00:00:00-03:00:00',
@@ -33,7 +34,7 @@ def get_data(filters):
time_slot_wise_total_count = {}
while(start_date <= getdate(filters.to_date)):
hours_count = {'date': start_date}
for key, value in time_slots.items():
for key, value in iteritems(time_slots):
start_time, end_time = value.split('-')
start_time = get_datetime("{0} {1}".format(start_date.strftime("%Y-%m-%d"), start_time))
end_time = get_datetime("{0} {1}".format(start_date.strftime("%Y-%m-%d"), end_time))