aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/track_status.py
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2016-06-16 15:12:59 +0300
committerEgor Tensin <Egor.Tensin@gmail.com>2016-06-16 15:12:59 +0300
commit95772acbd2676873d1b1c7b2c4a4df0a44c01293 (patch)
tree7272615fb596435978e6d8d2aea4d165ac54b1d1 /track_status.py
parenttrack_status.py: move stuff to the package (diff)
downloadvk-scripts-95772acbd2676873d1b1c7b2c4a4df0a44c01293.tar.gz
vk-scripts-95772acbd2676873d1b1c7b2c4a4df0a44c01293.zip
add CSV database reader
Diffstat (limited to '')
-rw-r--r--track_status.py2
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))