From 8f95296b6f7b45ee0a899707a4a2aa25dbc32dd6 Mon Sep 17 00:00:00 2001 From: Oliver Kennedy Date: Sun, 4 Feb 2018 22:03:49 -0500 Subject: [PATCH] python pseudocode bugs --- slides/cse4562sp2018/2018-01-31-SQL+Physical.html | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/slides/cse4562sp2018/2018-01-31-SQL+Physical.html b/slides/cse4562sp2018/2018-01-31-SQL+Physical.html index 26148fc3..5845f396 100644 --- a/slides/cse4562sp2018/2018-01-31-SQL+Physical.html +++ b/slides/cse4562sp2018/2018-01-31-SQL+Physical.html @@ -280,7 +280,7 @@ with open('Trees.csv', 'r') as f: for line in f: - attributes = split(",", line); + fields = split(",", line); if(fields[30] == 'Brooklyn'): print(fields[0]); @@ -371,8 +371,8 @@

   with db_open('Trees') as data:
     for record in data:
-      if(records['BORONAME'] == 'Brooklyn'):
-        print(fields['TREE_ID']);
+      if(record['BORONAME'] == 'Brooklyn'):
+        print(record['TREE_ID']);