a2e45b8fdde315b756691b4ae573ad55f55dc002,homeassistant/components/logbook.py,LogbookView,get,#LogbookView#Any#Any#,94
Before Change
end_day = start_day + timedelta(days=1)
events = recorder.query_events(
QUERY_EVENTS_BETWEEN,
(dt_util.as_utc(start_day), dt_util.as_utc(end_day)))
return self.json(humanify(events))
After Change
end_day = start_day + timedelta(days=1)
events = recorder.get_model("Events")
query = recorder.query("Events").filter(
(events.time_fired > start_day) &
(events.time_fired < end_day))
events = recorder.execute(query)
return self.json(humanify(events))
In pattern: SUPERPATTERN
Frequency: 4
Non-data size: 5
Instances
Project Name: home-assistant/home-assistant
Commit Name: a2e45b8fdde315b756691b4ae573ad55f55dc002
Time: 2016-07-02
Author: rhooper@toybox.ca
File Name: homeassistant/components/logbook.py
Class Name: LogbookView
Method Name: get
Project Name: openai/baselines
Commit Name: 36ee5d17071424f30071bcdc72ff11b18c577529
Time: 2018-06-06
Author: peterzhokhoff@gmail.com
File Name: baselines/logger.py
Class Name:
Method Name: configure
Project Name: luispedro/mahotas
Commit Name: f3baee485dbea5e2dab06273d6ffe81dd4d1bfe5
Time: 2010-09-07
Author: lpc@cmu.edu
File Name: mahotas/freeimage.py
Class Name:
Method Name:
Project Name: biolab/orange3
Commit Name: ecf4e9aaf32e15b5759375e0c50ba569f0dca042
Time: 2016-06-17
Author: niko.colneric@gmail.com
File Name: Orange/widgets/unsupervised/owdistances.py
Class Name:
Method Name: