-
Refactoring and modularization · f80d9a00Serbaf authored
Since the last release the main improvements have been: * Raise a custom exception instead of sysexiting when confronted with a wrong CSV file. * Change prints for logger messages. * Modularize the "get_tweets_from_csv" dividing it into 3 functions to provide more isolated functions. Now this function makes use of "get_tweet_from_csv_line", which returns a single Tweet object when provided with two lists representing the contents of a CSV header and one of its entries. There is also a "raw" alternative of that function, which works with raw lines and converts them to lists to then call the "non-raw" version.
f80d9a00
Name |
Last commit
|
Last update |
---|---|---|
.. | ||
__init__.py | Loading commit data... | |
cli.py | Loading commit data... | |
tweet_model.py | Loading commit data... |