mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-16 11:39:18 +00:00
ran 2to3, evaluation (#13499)
* ran 2to3, evaluation * Update update_gstin.py * Update accounts_receivable_summary.py
This commit is contained in:
committed by
Nabin Hait
parent
c141eb00ee
commit
efb731941d
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user