Skip to content

Commit

Permalink
#44 Team Chimple: Fix incorrect serial numbers in tablet tracker
Browse files Browse the repository at this point in the history
- Iterate columns up until "Serial #14"
  • Loading branch information
jo-xprize committed Nov 10, 2019
1 parent 5297762 commit 0af57ca
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,10 @@

logging.debug("csv_row: {}".format(csv_row))

# Iterate serial columns ("Serial #1" --> "Serial #7")
# Iterate serial columns ("Serial #1" --> "Serial #14")
removal_count = 1
column_index = 2
while removal_count <= 7:
while removal_count <= 14:
serial_number = csv_row[column_index]
logging.debug("Serial #{0}: {1}".format(removal_count, serial_number))

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,10 +59,10 @@

logging.debug("csv_row: {}".format(csv_row))

# Iterate serial columns ("Serial #1" --> "Serial #7")
# Iterate serial columns ("Serial #1" --> "Serial #14")
removal_count = 1
column_index = 2
while removal_count <= 7:
while removal_count <= 14:
serial_number = csv_row[column_index]
logging.debug("Serial #{0}: {1}".format(removal_count, serial_number))

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,5 @@ serial_number
5B16001020
6113001057
6116002734
5B12002782
6118002226
5A27001997
6116001841
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,9 @@ serial_number
5A27001825
6116001671
5B20001858
5A22000758
6111002515
6111002285
6116001981
6116001438
5A27001392

0 comments on commit 0af57ca

Please sign in to comment.