Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWalter Bender <walter@walter-laptop.(none)>2009-09-05 20:01:41 (GMT)
committer Walter Bender <walter@walter-laptop.(none)>2009-09-05 20:01:41 (GMT)
commit6085ac590cdfc4b390684d769afb1978953a512a (patch)
treeea816b2010529aa03a49fd026eeef4c1f844b535
parentc426ca24ff2d34d776a5281b388f16eac918e5dd (diff)
clean-up
-rwxr-xr-xjournal.py7
1 files changed, 1 insertions, 6 deletions
diff --git a/journal.py b/journal.py
index 233cf62..20a76b7 100755
--- a/journal.py
+++ b/journal.py
@@ -88,12 +88,7 @@ class JournalInteraction():
def set_max_session_id(self):
"""Sets the existing maximum session_id if the file already exists"""
- reader = csv.reader(open(self.filepath, "rb"))
- max = 0
- for row in reader:
- if int(row[0])>max:
- max= int(row[0])
- self.session_id=max
+ self.session_id=self.get_number_of_records();
def set_number_of_rows(self):
"""Sets the number of rows an existing file has"""