Skip to content

Commit

Permalink
Issue #162 - clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
Kayo Kallas committed Apr 21, 2020
1 parent e4b74c9 commit 61ba037
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions ait/gui/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -1066,7 +1066,6 @@ def handle():

# Loop through each packet from database
packets = list(playback.dbconn.query('SHOW MEASUREMENTS').get_points())

for i in range(len(packets)):

# Add packet name
Expand All @@ -1075,11 +1074,9 @@ def handle():

# Add start time and end time
point_query = 'SELECT * FROM "{}"'.format(packet_name)

points = list(playback.dbconn.query(point_query).get_points())

# Round start time down to nearest second

start_time_str = points[0]['time'].split('.')[0]

if start_time_str[-1] != 'Z':
Expand Down Expand Up @@ -1158,7 +1155,6 @@ def handle():
global playback
timestamp = bottle.request.forms.get('timestamp')

# if playback.query.has_key(timestamp):
if timestamp in playback.query:
query_list = playback.query[timestamp]
for i in range(len(query_list)):
Expand Down

0 comments on commit 61ba037

Please sign in to comment.