Fix date filter for rattail <-> rattail sync of HarvestTimeEntry
This commit is contained in:
parent
e239ea70e4
commit
0164336784
|
@ -2,7 +2,7 @@
|
||||||
################################################################################
|
################################################################################
|
||||||
#
|
#
|
||||||
# Rattail -- Retail Software Framework
|
# Rattail -- Retail Software Framework
|
||||||
# Copyright © 2010-2022 Lance Edgar
|
# Copyright © 2010-2023 Lance Edgar
|
||||||
#
|
#
|
||||||
# This file is part of Rattail.
|
# This file is part of Rattail.
|
||||||
#
|
#
|
||||||
|
@ -59,4 +59,8 @@ class HarvestTaskImporter(base.FromRattail, rattail_harvest_importing.model.Harv
|
||||||
pass
|
pass
|
||||||
|
|
||||||
class HarvestTimeEntryImporter(base.FromRattail, rattail_harvest_importing.model.HarvestTimeEntryImporter):
|
class HarvestTimeEntryImporter(base.FromRattail, rattail_harvest_importing.model.HarvestTimeEntryImporter):
|
||||||
pass
|
|
||||||
|
def query(self):
|
||||||
|
query = super(HarvestTimeEntryImporter, self).query()
|
||||||
|
return query.filter(self.model_class.spent_date >= self.start_date)\
|
||||||
|
.filter(self.model_class.spent_date <= self.end_date)
|
||||||
|
|
Loading…
Reference in a new issue