Skip to content

Commit

Permalink
Merge pull request #64 from vrk-kpa/LIKA-591_fix-xroad-services-list
Browse files Browse the repository at this point in the history
LIKA-591: Fix date range fetching for xroad service lists
  • Loading branch information
bzar authored Feb 20, 2024
2 parents 984259b + 7823a71 commit 5dc7d74
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ckanext/xroad_integration/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,8 +132,8 @@ def create(cls, timestamp):
@classmethod
def within_range(cls, start, end):
return (model.Session.query(XRoadServiceList)
.filter(and_(XRoadServiceList.timestamp > start),
(XRoadServiceList.timestamp < end)).all())
.filter(and_(XRoadServiceList.timestamp >= start),
(XRoadServiceList.timestamp <= end)).all())

def security_servers(self):
return (model.Session.query(XRoadServiceListSecurityServer)
Expand Down

0 comments on commit 5dc7d74

Please sign in to comment.