diff options
author | Egor Tensin <Egor.Tensin@gmail.com> | 2016-06-16 15:12:59 +0300 |
---|---|---|
committer | Egor Tensin <Egor.Tensin@gmail.com> | 2016-06-16 15:12:59 +0300 |
commit | 95772acbd2676873d1b1c7b2c4a4df0a44c01293 (patch) | |
tree | 7272615fb596435978e6d8d2aea4d165ac54b1d1 /track_status.py | |
parent | track_status.py: move stuff to the package (diff) | |
download | vk-scripts-95772acbd2676873d1b1c7b2c4a4df0a44c01293.tar.gz vk-scripts-95772acbd2676873d1b1c7b2c4a4df0a44c01293.zip |
add CSV database reader
Diffstat (limited to '')
-rw-r--r-- | track_status.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/track_status.py b/track_status.py index 9f22ea3..8f164b7 100644 --- a/track_status.py +++ b/track_status.py @@ -42,7 +42,7 @@ if __name__ == '__main__': with csv.Writer(args.output) as csv_writer: - if csv_writer is not None: + if csv_writer: tracker.add_initial_status_handler(lambda user: csv_writer.write_record(user)) tracker.add_status_update_handler(lambda user: csv_writer.write_record(user)) |