diff options
author | Walter 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) |
commit | 6085ac590cdfc4b390684d769afb1978953a512a (patch) | |
tree | ea816b2010529aa03a49fd026eeef4c1f844b535 | |
parent | c426ca24ff2d34d776a5281b388f16eac918e5dd (diff) |
clean-up
-rwxr-xr-x | journal.py | 7 |
1 files changed, 1 insertions, 6 deletions
@@ -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""" |