This commit is contained in:
happyleavesaoc authored and Daniel Høyer Iversen committed 2017-09-24 08:28:11 +02:00
1 parent e2ce1d05ae
commit 84524e0712
3 files changed
+7 -4

No files matched your search

+1 -1
View File
@@ -57,7 +57,7 @@ class USPSPackageSensor(Entity):
for package in self._usps.packages:
status = slugify(package['primary_status'])
if status == STATUS_DELIVERED and \
package['date'] < now().date():
package['delivery_date'] < now().date():
continue
status_counts[status] += 1
self._attributes = {