Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion monocle/db.py
Original file line number Diff line number Diff line change
Expand Up @@ -925,7 +925,7 @@ def get_all_sightings(session, pokemon_ids):

def get_spawns_per_hour(session, pokemon_id):
if DB_TYPE == 'sqlite':
ts_hour = 'STRFTIME("%H", expire_timestamp)'
ts_hour = 'STRFTIME("%H", datetime(expire_timestamp,"unixepoch"))'
elif DB_TYPE == 'postgresql':
ts_hour = "TO_CHAR(TO_TIMESTAMP(expire_timestamp), 'HH24')"
else:
Expand Down
2 changes: 1 addition & 1 deletion monocle/templates/report_single.html
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
</style>
<script type="text/javascript" src='/static/js/jquery-3.2.1.min.js'></script>
<script type="text/javascript" src="https://www.gstatic.com/charts/loader.js"></script>
<script type="text/javascript">
<script defer type="text/javascript">
google.charts.load('current', {'packages':['corechart']});
google.charts.setOnLoadCallback(drawCharts);

Expand Down